This trait can be used in conjunction with Pattern matchers:
List(1, 2) must beLike { case List(a, b) => ok } List(1, 2) must beLike { case List(a, b) => ko("unexpected") }
- Companion
- object
Value members
Inherited methods
this method can be overridden to throw exceptions when checking a result
this method can be overridden to throw exceptions when checking a result
- Inherited from
- ResultChecks
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
this method can be overridden to intercept a Result and modify it. It is used for example to set a stacktrace providing the location of a failure
- Inherited from
- ResultChecks
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
this method can be overridden to avoid filling-in a stacktrace indicating the location of the result
- Inherited from
- MatchResultStackTrace