Skip to main content

Module assert_all

Module assert_all 

Source
Expand description

Assert for comparing all elements of an iterable.

These macros help with comparison of iter parameters, such as a iter of struct and a single struct.

§Example

use assertables::*;

let a = [1, 2];
let b = 0;
assert_all_gt_x!(a.iter(), b);

Modules§

assert_all
Assert all elements of an iteratable match a predicate.
assert_all_eq_x
Assert all elements of an iteratable are equal to a value.
assert_all_ge_x
Assert all elements of an iteratable are greater than or equal to a value.
assert_all_gt_x
Assert all elements of an iteratable are greater than a value.
assert_all_le_x
Assert all elements of an iteratable are less than or equal to a value.
assert_all_lt_x
Assert all elements of an iteratable are less than a value.
assert_all_ne_x
Assert all elements of an iteratable are not equal to a value.