diff --git a/tests/tinyvec.rs b/tests/tinyvec.rs index 6295458..7a642ee 100644 --- a/tests/tinyvec.rs +++ b/tests/tinyvec.rs @@ -23,8 +23,11 @@ fn TinyVec_swap_remove() { #[test] fn TinyVec_capacity() { - let tv: TinyVec<[i32; 10]> = Default::default(); - assert_eq!(tv.capacity(), 10); + let mut tv: TinyVec<[i32; 1]> = Default::default(); + assert_eq!(tv.capacity(), 1); + tv.move_to_the_heap(); + tv.extend_from_slice(&[1, 2, 3, 4]); + assert_eq!(tv.capacity(), 4); } #[test]