assert_that 0.1.0

Helper macros for use with boolean-valued predicate functions.
Documentation

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!("Hello World", str::similar("Hello World"));
assert_that!(3, str::similar("Hello World"));

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.