macro_rules! assert_satisfies {
    ($subject:expr, $pred:expr) => { ... };
}
Expand description

A simple macro to allow idiomatic assertion of predicates, producing well formatted falsifications if the predicate fails.

usage:

let predicate = correct_name().or(correct_address());
assert_satisfies!(&test_peer(), predicate);