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_false macro

This is a debug-only variant of the assert_ge macro

This is a debug-only variant of the assert_gt macro

This is a debug-only variant of the assert_le macro

This is a debug-only variant of the assert_lt macro

This is a debug-only variant of the assert_near macro

This is a debug-only variant of the assert_nrange macro

This is a debug-only variant of the assert_range macro

This is a debug-only variant of the assert_true macro