Assert a function ok() is less than or equal to another.
fn f(i: i8) -> Result<String, String> { match i { 0..=9 => Ok(format!("{}", i)), _ => Err(format!("{:?} is out of range", i)), } } let a: i8 = 1; let b: i8 = 2; assert_fn_ok_le!(f, a, f, b);
assert_fn_ok_le
assert_fn_ok_le_as_result
debug_assert_fn_ok_le