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

Panics if the first expression is not strictly less than the second.

Requires that the values implement Debug and PartialOrd.

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

Example

use more_asserts as ma;

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