assert_that
Helper macro for use with predicates
.
This macro prints more detailed output on failure compared to assert!
, using
output from predicates-tree
.
Usage
Example
extern crate assert_that;
use assert_that;
assert_that!;
assert_that!;
Note that predicate::*
functions from predicates::prelude
are brought into
scope automatically when used within the macro invocation. See
predicates
documentation for more details.
See this crate's documentation for more detailed examples.