Skip to main content

lt

Function lt 

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

Matches a value strictly less than expected.

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

fn main() -> TestResult {
    check!(9).satisfies(lt(10))?;
    check!(10).violates(lt(10))?;
    Ok(())
}