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:
Sebastian Dröge 2018-01-11 12:11:32 +02:00
parent 8a82e8e89f
commit baa81dc77f

View File

@ -1124,7 +1124,7 @@ fn test_mut_chunks() {
}
}
let result = [0, 0, 0, 1, 1, 1, 2];
assert!(v == result);
assert_eq!(v, result);
}
#[test]
@ -1136,7 +1136,7 @@ fn test_mut_chunks_rev() {
}
}
let result = [2, 2, 2, 1, 1, 1, 0];
assert!(v == result);
assert_eq!(v, result);
}
#[test]