Module assert_in

Module assert_in 

Source
Expand description

Assert in nearness.

These macros compare numbers, such as two numbers where one number may be close to another number.

§Example

use assertables::*;

let a: i8 = 10;
let b: i8 = 11;
let delta: i8 = 1;
assert_in_delta!(a, b, delta);

Modules§

assert_in
Assert an item is in a container.
assert_in_delta
Assert a number is within delta of another.
assert_in_epsilon
Assert a number is within epsilon of another.
assert_in_range
Assert an item is in a range.