Container class for matching success
type stuff in scalaz.concurrent.Task
containers,
similar to org.scalatest.OptionValues.Valuable
Container class for matching success
type stuff in scalaz.concurrent.Task
containers,
similar to org.scalatest.OptionValues.Valuable
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
Implicit conversion that adds a runValue
method to scalaz.concurrent.Task
Implicit conversion that adds a runValue
method to scalaz.concurrent.Task
the scalaz.concurrent.Task
on which to add the runValue
method
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 ascalaz.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:
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