macro_rules! assert_ge {
    ($left:expr, $right:expr) => { ... };
    ($left:expr, $right:expr, ) => { ... };
    ($left:expr, $right:expr, $($msg_args:tt)+) => { ... };
}
Expand description

Panics if the first expression is not greater than or equal to the second.

Requires that the values implement Debug and PartialOrd.

On failure, panics and prints the values out in a manner similar to prelude’s assert_eq!.

Optionally may take an additional message to display on failure, which is formatted using standard format syntax.

Example

use more_asserts as ma;

ma::assert_ge!(4, 4);
ma::assert_ge!(4, 3);
ma::assert_ge!(4, 3, "With a message");
ma::assert_ge!(4, 4, "With a formatted message: {}", "oh no");