Function xpct::be_ge

source ·
pub fn be_ge<'a, Actual, Expected>(
    expected: Expected
) -> Matcher<'a, Actual, Actual>where
    Actual: Debug + PartialOrd<Expected> + 'a,
    Expected: Debug + 'a,
Expand description

Succeeds when the actual value is greater than or equal to the expected value.

Examples

use xpct::{expect, be_ge};

expect!(57).to(be_ge(41));
expect!(57).to(be_ge(57));