galvanic_assert::matchers

Function greater_than_or_equal

Source
pub fn greater_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 greater than or equal to the expected value.

This is the same as geq.

#Examples

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