Skip to content

Commit b0cf290

Browse files
committed
Add failing test for truncate
1 parent 24fccaf commit b0cf290

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index_map.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,6 +1258,7 @@ where
12581258
/// map.insert(1, "c").unwrap();
12591259
/// map.truncate(2);
12601260
/// assert_eq!(map.len(), 2);
1261+
/// assert_eq!(map.get(&1), None);
12611262
///
12621263
/// let mut iter = map.iter();
12631264
/// assert_eq!(iter.next(), Some((&3, &"a")));

0 commit comments

Comments
 (0)