galvanic_assert::matchers

Function geq

Source
pub fn geq<'a, T: PartialOrd + Debug + 'a>(
    expected: T,
) -> Box<dyn Matcher<'a, T> + 'a>
Expand description

Matches if the asserted value is greater than or equal to the expected value.

This is the same as greater_than_or_equal.

#Examples

use galvanic_assert::matchers::*;
assert_that!(&(1+1), geq(1));
assert_that!(&(1+1), geq(2));