Function googletest::matchers::not
source · pub fn not<T: Debug, InnerMatcherT: Matcher<ActualT = T>>(
inner: InnerMatcherT
) -> impl Matcher<ActualT = T>
Expand description
Matches the actual value exactly when the inner matcher does not match.
verify_that!(0, not(eq(1)))?; // Passes
verify_that!(0, not(eq(0)))?; // Fails