EitherValuable
org.scalatest.EitherValues.EitherValuable
class EitherValuable[L, R](either: Either[L, R], pos: Position) extends Serializable
Wrapper class that adds a value method to Either, allowing you to make statements to inspect the value if a Right, like:
either.value should be > 9
Value parameters
- either
-
An
Eitherto convert toEitherValuable, which provides thevaluemethod.
Attributes
- Graph
-
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Members list
In this article