pub fn not<E>(expectation: E) -> Not<E>Expand description
Creates a Not expectation combinator wrapping the given expectation.
ยงExamples
use asserting::expectations::{not, HasLength, IsEmpty, IsEqualTo, IsNegative, StringContains};
use asserting::prelude::*;
assert_that!(41).expecting(not(IsEqualTo { expected: 42 }));
assert_that!([1, 2, 3]).expecting(not(IsEmpty));
assert_that!(37.9).expecting(not(IsNegative));
assert_that!([1, 2, 3]).expecting(not(HasLength { expected_length: 4 }));
assert_that!("almost").expecting(not(StringContains { expected: "entire" }));