Skip to main content

Module assert_any_gt_x

Module assert_any_gt_x 

Source
Expand description

Assert any element of an iterable is greater than a value.

Pseudocode:
iter ∃ > x

§Example

use assertables::*;

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

This implementation uses ::std::iter::Iterator.

§Module macros