org.scalatest.PartialFunctionValues
Wrapper class that adds a valueAt method to PartialFunction, allowing you to make statements like:
valueAt
PartialFunction
pf.valueAt("VI") should equal (6)
An PartialFunction to convert to Valuable, which provides the valueAt method.
Valuable
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.
TestFailedException
Wrapper class that adds a
valueAt
method toPartialFunction
, allowing you to make statements like: