Adding is_empty and is_full tests for zero capacity

This commit is contained in:
Jacob Alexander 2021-12-29 12:01:45 -08:00
parent bc2cd1be70
commit 0b92953ef1

View File

@ -1251,5 +1251,11 @@ mod tests {
// Validate slice
assert_eq!(v.as_slice(), &[]);
// Validate empty
assert!(v.is_empty());
// Validate full
assert!(v.is_full());
}
}