Macro assertables::assert_io_ge [−][src]
macro_rules! assert_io_ge { ($left:expr, $right:expr $(,)?) => { ... }; ($left:expr, $right:expr, $($arg:tt)+) => { ... }; }
Expand description
Assert one value is greater than or equal to another value.
-
When true, return
Ok(true). -
Otherwise, call
panic!with a message and the values of the expressions with their debug representations.
Examples
assert_io_ge!(2, 1); //-> ()
// assert_io_ge!(1, 2); //-> panic!("assertion failed: `assert_io_ge(left, right)`\n left: `2`,\n right: `1`")
This macro has a second form where a custom message can be provided.