[core] Minor test fixes

parent 54f1f59c
Pipeline #97670 passed with stages
in 7 minutes and 18 seconds
......@@ -62,6 +62,7 @@ where
}
/// The index is out of the bounds of this vector.
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct IndexOutOfBounds;
impl<T> Default for Vec<T>
......
......@@ -399,7 +399,7 @@ fn spread_layout_clear_works() {
#[test]
fn set_works() {
let mut vec = vec_from_slice(&[b'a', b'b', b'c', b'd']);
vec.set(0, b'x');
let _ = vec.set(0, b'x').unwrap();
let expected = vec_from_slice(&[b'x', b'b', b'c', b'd']);
assert_eq!(vec, expected);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment