Wrapper class that adds a value
method to LeftProjection
, allowing
you to make statements like:
Wrapper class that adds a value
method to LeftProjection
, allowing
you to make statements like:
either.left.value should be > 9
Wrapper class that adds a value
method to RightProjection
, allowing
you to make statements like:
Wrapper class that adds a value
method to RightProjection
, allowing
you to make statements like:
either.right.value should be > 9
Wrapper class that adds a value
method to Either
, allowing
you to make statements to inspect the value if a Right, like:
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
Implicit conversion that adds a value
method to Either
.
Implicit conversion that adds a value
method to Either
.
This method is right biased and is the equivalent of calling either.right.value
.
the Either
on which to add the value
method
Implicit conversion that adds a value
method to LeftProjection
.
Implicit conversion that adds a value
method to LeftProjection
.
the LeftProjection
on which to add the value
method
Implicit conversion that adds a value
method to RightProjection
.
Implicit conversion that adds a value
method to RightProjection
.
the RightProjection
on which to add the value
method
The .right.value syntax on Either has been deprecated and will be removed in a future version of ScalaTest. Please use .value instead.
Companion object that facilitates the importing of
ValueEither
members as an alternative to mixing it in. One use case is to importEitherValues
's members so you can useleft.value
andright.value
onEither
in the Scala interpreter: