mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
hal-internal: fix failing test due to not initializing ringbuf.
This commit is contained in:
parent
f30b298b0e
commit
43d51884e2
@ -478,8 +478,12 @@ mod tests {
|
||||
|
||||
#[test]
|
||||
fn zero_len() {
|
||||
let mut b = [0; 0];
|
||||
|
||||
let rb = RingBuffer::new();
|
||||
unsafe {
|
||||
rb.init(b.as_mut_ptr(), b.len());
|
||||
|
||||
assert_eq!(rb.is_empty(), true);
|
||||
assert_eq!(rb.is_full(), true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user