Expand description
§all_asserts
The all_asserts crate provides multiple assert macros which aren’t there in the
standard library. These macros provide extremely useful outputs and can be used for
writing better tests.
Macros§
- Asserts that the expression is false
- Asserts that the left hand side expression is greater than or equal to the right hand side expression
- Asserts that the left hand side expression is greater than the right hand side expression
- Asserts that the left hand side expression is lesser than or equal to the right hand side expression
- Asserts that the left hand side expression is lesser than the right hand side expression
- Asserts that the right hand side expression is within the range on the left hand side
- Asserts that the right hand side expression is not within the range on the left hand side
- Asserts that the right hand side expression is within the range on the left hand side
- Asserts that the expression is true
- This is a debug-only variant of the
assert_falsemacro - This is a debug-only variant of the
assert_gemacro - This is a debug-only variant of the
assert_gtmacro - This is a debug-only variant of the
assert_lemacro - This is a debug-only variant of the
assert_ltmacro - This is a debug-only variant of the
assert_nearmacro - This is a debug-only variant of the
assert_nrangemacro - This is a debug-only variant of the
assert_rangemacro - This is a debug-only variant of the
assert_truemacro