Module lib::assert_fn_err::assert_fn_err_ge_expr
source · Expand description
Assert a function err() is greater than or equal to an expression.
§Example
fn f(i: i8) -> Result<String, String> {
match i {
0..=9 => Ok(format!("{}", i)),
_ => Err(format!("{:?} is out of range", i)),
}
}
let a: i8 = 20;
let b = String::from("10 is out of range");
assert_fn_err_ge_expr!(f, a, b);