#vector #assertions #compare #container #extern

vector_assertions

Assert library for vector like container

1 unstable release

0.1.0 Dec 28, 2019

#10 in #extern

MIT license

5KB
69 lines

Vector assertion

Compares if two vectors contain the same values.

Example

#[macro_use] extern crate vector_assertions;
fn main() {
    let a = vec![1, 2];
    let b = vec![2, 1];
    assert_vec_eq!(a, b, "we are testing addition with {} and {}", "a", "b");
}

No runtime deps