Checks value against matcher; a failure is reported at the caller's line. Returns whether
it held.
assert_that(4, greater_than(5));This one is meant to fail, so there is nothing to run.
- value: the value to check.
- matcher: what it should be.
- loc: where the check is written, shown when it fails. Leave the default.
assert_that :: (value: $T, matcher: Matcher, loc := #caller_location) -> bool
Checks value against matcher; a failure is reported at the caller's line. Returns whether
it held.
Parameters
- value: $T
- the value to check.
- matcher: Matcher
- what it should be.
- loc := #caller_location
- where the check is written, shown when it fails. Leave the default.
Returns
- bool
assert_that(4, greater_than(5));This one is meant to fail, so there is nothing to run.