Eitherable
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
- Value parameters:
- either
A
scala.util.Either
object to try converting to aEitherable
- See also:
org.scalatest.OptionValues.Valuable
class Object
trait Matchable
class Any
Value members
Concrete methods
Use .leftValue on an Either to extract the left side. Like .value, but for the left. If the value is a right, the test will fail.
Use .leftValue on an Either to extract the left side. Like .value, but for the left. If the value is a right, the test will fail.