Skip to content

Commit 6be4f48

Browse files
committed
Remove test for adaptive early resize
1 parent f84f565 commit 6be4f48

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/map.rs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3400,27 +3400,6 @@ mod test_map {
34003400
assert_eq!(map[&6], 60);
34013401
}
34023402

3403-
#[cfg(adaptive_resize_not_implemented)]
3404-
#[test]
3405-
fn test_adaptive() {
3406-
const TEST_LEN: usize = 5000;
3407-
// by cloning we get maps with the same hasher seed
3408-
let mut first = HashMap::new();
3409-
let mut second = first.clone();
3410-
first.extend((0..TEST_LEN).map(|i| (i, i)));
3411-
second.extend((TEST_LEN..TEST_LEN * 2).map(|i| (i, i)));
3412-
3413-
for (&k, &v) in &second {
3414-
let prev_cap = first.capacity();
3415-
let expect_grow = first.len() == prev_cap;
3416-
first.insert(k, v);
3417-
if !expect_grow && first.capacity() != prev_cap {
3418-
return;
3419-
}
3420-
}
3421-
panic!("Adaptive early resize failed");
3422-
}
3423-
34243403
#[test]
34253404
fn test_try_reserve() {
34263405
let mut empty_bytes: HashMap<u8, u8> = HashMap::new();

0 commit comments

Comments
 (0)