Add 65536 to the Array impls

This commit is contained in:
bluss
2017-03-25 15:15:07 +01:00
parent cc09d7f17b
commit 2de36ba2ca
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -450,3 +450,9 @@ fn test_pop_at() {
assert_eq!(v.pop_at(2), None);
assert_eq!(&v[..], &["a", "d"]);
}
#[test]
fn test_sizes() {
let v = ArrayVec::from([0u8; 1 << 16]);
assert_eq!(vec![0u8; v.len()], &v[..]);
}