mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05: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:
commit
cdc7d92e57
1 changed files with 1 additions and 1 deletions
|
@ -20,6 +20,6 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn test_array_and_vec_similarity() {
|
fn test_array_and_vec_similarity() {
|
||||||
let (a, v) = array_and_vec();
|
let (a, v) = array_and_vec();
|
||||||
assert!(a.iter().zip(v.iter()).all(|(x, y)| x == y));
|
assert_eq!(a, v[..]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue