1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-10 11:10:26 +02:00

Merge pull request #592 from tinkhauser/vec1_bugfix

fix(vec1): Have test compare every element in a and v
This commit is contained in:
fmoko 2020-12-06 15:09:45 +01:00 committed by GitHub
commit cdc7d92e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,6 +20,6 @@ mod tests {
#[test]
fn test_array_and_vec_similarity() {
let (a, v) = array_and_vec();
assert!(a.iter().zip(v.iter()).all(|(x, y)| x == y));
assert_eq!(a, v[..]);
}
}