galvanic_assert::matchers

Macro any_of

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

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

#Examples

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