Add failing test for truncate

This commit is contained in:
Phil Rutschman 2025-04-25 16:35:22 -07:00
parent 24fccaf0e4
commit b0cf29052c

View File

@ -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")));