Testing module

any_of

procedureextensionsince 0.30.0Source

At least one matcher holds.

Example↗
assert_that(7, any_of(is(1), is(7)));
any_of :: (matchers: ..Matcher) -> Matcher

At least one matcher holds.

Parameters

matchers: ..Matcher
the matchers, one of which must hold.

Returns

Example↗
assert_that(7, any_of(is(1), is(7)));

See also