[−][src]Macro chek::greater
Panics if the first expression is not strictly greater than the second.
Requires that the values implement PartialOrd
and Debug
.
Note: is also aliased as chek::gt!
. A debug-only version is available as
chek::debug_greater!
.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
chek::greater!(4, 3); chek::greater!(4, 3, "With a message"); chek::greater!(4, 3, "With a formatted message: {}", "oh no");