mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 06:50:32 +00:00
Adding is_empty and is_full tests for zero capacity
This commit is contained in:
parent
bc2cd1be70
commit
0b92953ef1
@ -1251,5 +1251,11 @@ mod tests {
|
|||||||
|
|
||||||
// Validate slice
|
// Validate slice
|
||||||
assert_eq!(v.as_slice(), &[]);
|
assert_eq!(v.as_slice(), &[]);
|
||||||
|
|
||||||
|
// Validate empty
|
||||||
|
assert!(v.is_empty());
|
||||||
|
|
||||||
|
// Validate full
|
||||||
|
assert!(v.is_full());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user