Skip to main content

ge

Function ge 

Source
pub fn ge<T>(expected: T) -> impl Matcher<T>
where T: PartialOrd + Debug,
Expand description

Matches a value greater than or equal to expected.

use test_better_core::TestResult;
use test_better_matchers::{ge, check};

fn main() -> TestResult {
    check!(0).satisfies(ge(0))?;
    check!(-1).violates(ge(0))?;
    Ok(())
}