galvanic_assert::matchers

Function less_than

Source
pub fn less_than<'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 the expected value.

This is the same as lt.

#Examples

use galvanic_assert::matchers::*;
assert_that!(&(1+1), less_than(3));