Skip to content

Commit cdc7d92

Browse files
author
fmoko
authored
Merge pull request #592 from tinkhauser/vec1_bugfix
fix(vec1): Have test compare every element in a and v
2 parents af0e3b8 + 9b6c629 commit cdc7d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/collections/vec1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ mod tests {
2020
#[test]
2121
fn test_array_and_vec_similarity() {
2222
let (a, v) = array_and_vec();
23-
assert!(a.iter().zip(v.iter()).all(|(x, y)| x == y));
23+
assert_eq!(a, v[..]);
2424
}
2525
}

0 commit comments

Comments
 (0)