pub fn less_than_or_equal<'a, T>(expected: T) -> Box<dyn Matcher<'a, T> + 'a>where
T: PartialOrd + Debug + 'a,
Expand description
Matches if the asserted value is less than or equal to the expected value.
This is the same as leq.
#Examples
use galvanic_assert::matchers::*;
assert_that!(&(1+1), less_than_or_equal(3));
assert_that!(&(1+1), less_than_or_equal(2));