[−][src]Macro chek::gt
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::greater!
. A debug-only version is available as
chek::debug_gt!
.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
chek::gt!(4, 3); chek::gt!(4, 3, "With a message"); chek::gt!(4, 3, "With a formatted message: {}", "oh no");