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§
- assert_
false - Asserts that the expression is false
- assert_
ge - Asserts that the left hand side expression is greater than or equal to the right hand side expression
- assert_
gt - Asserts that the left hand side expression is greater than the right hand side expression
- assert_
le - Asserts that the left hand side expression is lesser than or equal to the right hand side expression
- assert_
lt - Asserts that the left hand side expression is lesser than the right hand side expression
- assert_
near - Asserts that the right hand side expression is within the range on the left hand side
- assert_
nrange - Asserts that the right hand side expression is not within the range on the left hand side
- assert_
range - Asserts that the right hand side expression is within the range on the left hand side
- assert_
true - Asserts that the expression is true
- debug_
assert_ false - This is a debug-only variant of the
assert_false
macro - debug_
assert_ ge - This is a debug-only variant of the
assert_ge
macro - debug_
assert_ gt - This is a debug-only variant of the
assert_gt
macro - debug_
assert_ le - This is a debug-only variant of the
assert_le
macro - debug_
assert_ lt - This is a debug-only variant of the
assert_lt
macro - debug_
assert_ near - This is a debug-only variant of the
assert_near
macro - debug_
assert_ nrange - This is a debug-only variant of the
assert_nrange
macro - debug_
assert_ range - This is a debug-only variant of the
assert_range
macro - debug_
assert_ true - This is a debug-only variant of the
assert_true
macro