galvanic_assert::matchers

Macro all_of

Source
macro_rules! all_of {
    ( $matcher: expr ) => { ... };
    ( $matcher: expr, $($matchers: expr),* ) => { ... };
}
Expand description

Takes a list of matchers for the same type combines them conjunctively.

#Examples

use galvanic_assert::matchers::*;
assert_that!(&(1+1), all_of![gt(0), lt(5), not(eq(3))]);