mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-28 13:00:26 +00:00
Add failing test for truncate
This commit is contained in:
parent
24fccaf0e4
commit
b0cf29052c
@ -1258,6 +1258,7 @@ where
|
||||
/// map.insert(1, "c").unwrap();
|
||||
/// map.truncate(2);
|
||||
/// assert_eq!(map.len(), 2);
|
||||
/// assert_eq!(map.get(&1), None);
|
||||
///
|
||||
/// let mut iter = map.iter();
|
||||
/// assert_eq!(iter.next(), Some((&3, &"a")));
|
||||
|
Loading…
x
Reference in New Issue
Block a user