Valuable
Wrapper class that adds a valueAt
method to PartialFunction
, allowing
you to make statements like:
pf.valueAt("VI") should equal (6)
- Value parameters:
- pf
An
PartialFunction
to convert toValuable
, which provides thevalueAt
method.
class Object
trait Matchable
class Any
Value members
Concrete methods
Returns the result of applying the wrapped PartialFunction
to the passed input, if it is defined at that input, else
throws TestFailedException
with a detail message indicating the PartialFunction
was not defined at the given input.
Returns the result of applying the wrapped PartialFunction
to the passed input, if it is defined at that input, else
throws TestFailedException
with a detail message indicating the PartialFunction
was not defined at the given input.