向量容器断言库
作者:Matthias Lochbrunner
#10 in #extern
5KB 69 行(不包括注释)
比较两个向量是否包含相同的值。
#[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"); }