Container class for matching success
type stuff in scala.util.Either
containers,
similar to org.scalatest.OptionValues.Valuable
Container class for matching success
type stuff in scala.util.Either
containers,
similar to org.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
result.value should be > 15
Where it only matches if result is Valid
and is also greater than 15.
Otherwise your test will fail, indicating that it was left instead of right
org.scalatest.OptionValues.Valuable
Implicit conversion that adds a value
method to scala.util.Either
Implicit conversion that adds a value
method to scala.util.Either
the scala.util.Either
on which to add the value
method
Companion object for easy importing – rather than mixing in – to allow
EitherValues
operations.This will permit you to invoke a
value
method on an instance of ascala.util.Either
, which attempts to unwrap theValid
.Similar to
org.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
Where it only matches if result is both an
Either.Vaild
and has a value > 15.Otherwise your test will fail, indicating that it was an Invalid instead of Valid
EitherValues.EitherValuable