pub fn not<'a, In, PosOut, NegOut>(
matcher: Matcher<'a, In, PosOut, NegOut>
) -> Matcher<'a, In, NegOut, PosOut>where
In: 'a,
PosOut: 'a,
NegOut: 'a,
Expand description
Negates the matcher passed to it.
This does the same thing as Assertion::to_not
.
Examples
use xpct::{expect, not, equal};
expect!("foo").to(not(equal("bar")));