pub fn le<T>(expected: T) -> impl Matcher<T>where
T: PartialOrd + Debug,Expand description
Matches a value less than or equal to expected.
use test_better_core::TestResult;
use test_better_matchers::{le, check};
fn main() -> TestResult {
check!(10).satisfies(le(10))?;
check!(11).violates(le(10))?;
Ok(())
}