Use assert_eq!() instead of assert!(a == b) in slice chunks_mut() unit test
This way more useful information is printed if the test ever fails.
This commit is contained in:
parent
8a82e8e89f
commit
baa81dc77f
@ -1124,7 +1124,7 @@ fn test_mut_chunks() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let result = [0, 0, 0, 1, 1, 1, 2];
|
let result = [0, 0, 0, 1, 1, 1, 2];
|
||||||
assert!(v == result);
|
assert_eq!(v, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
@ -1136,7 +1136,7 @@ fn test_mut_chunks_rev() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let result = [2, 2, 2, 1, 1, 1, 0];
|
let result = [2, 2, 2, 1, 1, 1, 0];
|
||||||
assert!(v == result);
|
assert_eq!(v, result);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user