TEST: Add minimal tests for new array sizes

This commit is contained in:
bluss
2018-11-25 09:36:22 +01:00
parent e355c9eb31
commit d77b93079f
+15
View File
@@ -485,3 +485,18 @@ fn test_default() {
assert_eq!(s.len(), 0);
assert_eq!(v.len(), 0);
}
#[cfg(feature="array-sizes-33-128")]
#[test]
fn test_sizes_33_128() {
ArrayVec::from([0u8; 52]);
ArrayVec::from([0u8; 127]);
}
#[cfg(feature="array-sizes-129-255")]
#[test]
fn test_sizes_129_255() {
ArrayVec::from([0u8; 237]);
ArrayVec::from([0u8; 255]);
}