FunctionConstraint

case class FunctionConstraint[T, S](actual: T, executor: (T, T) => Result) extends Constraint[T]

This general constraint uses a function taking an actual value and an expected value to do the match.

trait Serializable
trait Product
trait Equals
trait Constraint[T]
class Object
trait Matchable
class Any

Value members

Concrete methods

def execute(expected: Option[T]): Option[Result]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product