Add unit test for ArrayVec::extend_from_slice
Test that we can extend an `ArrayVec` with a slice that is less than remaining capacity.
This commit is contained in:
parent
798c9cff1c
commit
4024ba5910
|
@ -181,4 +181,10 @@ mod tests {
|
|||
let mut av = ArrayVec::<_, 0>::new();
|
||||
av.extend_from_slice(&[42]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn extend_from_slice() {
|
||||
let mut av = ArrayVec::<u8, 8>::new();
|
||||
av.extend_from_slice(b"abc");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue