assert-within
A macro assert_within! for tests involving floating point numbers.
assert_within!;
assert_within!;
Features
- Pass arguments by reference or value
- Sigils (
+,~) indicate additive or relative error - Traps NaN in any of the arguments
- Errors cause both the stringified expressions and their values to be displayed
- Arbitrary additional format args
- Generic over
num_traits::FloatCore no_stdcompatible
License
MIT or Apache 2.0 at your option.