Valuable

class Valuable[A, B](pf: PartialFunction[A, B], pos: Position)

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 to Valuable, which provides the valueAt method.

class Object
trait Matchable
class Any

Value members

Concrete methods

def valueAt(input: A): B

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.