assertables

Module assert_iter

source
Expand description

Assert macros for comparing iter collections.

These macros help with comparison of iter parameters, such as two arrays or two vectors. These macros convert each input using the std::iter::Iterator trait.

§Example

use assertables::*;
 
let a = [1, 2];
let b = [1, 2];
assert_iter_eq!(&a, &b);

Modules§