File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -3400,27 +3400,6 @@ mod test_map {
3400
3400
assert_eq ! ( map[ & 6 ] , 60 ) ;
3401
3401
}
3402
3402
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
-
3424
3403
#[ test]
3425
3404
fn test_try_reserve ( ) {
3426
3405
let mut empty_bytes: HashMap < u8 , u8 > = HashMap :: new ( ) ;
You can’t perform that action at this time.
0 commit comments