Companion object for easy importing – rather than mixing in – to allow DisjunctionValues
operations.
Companion object for easy importing – rather than mixing in – to allow TaskValues
operations.
Companion object for easy importing – rather than mixing in – to allow TaskValues
operations.
This will permit you to invoke a runValue
method on an instance of a scalaz.concurrent.Task
,
which attempts the Task and then attempts to return the right of the resulting disjunction.
Meant to allow you to make statements like:
task.runValue should be > 15
Where it only matches if the task didn't fail and the result is \/-(9)
Otherwise your test will fail, indicating that it was left instead of right.
org.scalatest.OptionValues.Valuable
Import singleton in case you prefer to import rather than mix in
Companion object for easy importing – rather than mixing in – to allow ValidationValues
operations.
Companion object for easy importing – rather than mixing in – to allow ValidationValues
operations.
This will permit you to invoke a value
method on an instance of a scalaz.Validation
,
which attempts to unwrap the right validation
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 Success(9)
Otherwise your test will fail, indicating that it was left instead of right
org.scalatest.OptionValues.Valuable
Companion object for easy importing – rather than mixing in – to allow
DisjunctionValues
operations.This will permit you to invoke a
value
method on an instance of ascalaz.\/
, which attempts to unwrap the right disjunctionSimilar to
org.scalatest.OptionValues.Valuable
Meant to allow you to make statements like:
Where it only matches if result is
\/-(9)
Otherwise your test will fail, indicating that it was left instead of right
org.scalatest.OptionValues.Valuable