()
| 1443 | |
| 1444 | #[test] |
| 1445 | fn into_iter() { |
| 1446 | let mut f = MapForest::<u32, f32>::new(); |
| 1447 | let mut m = Map::<u32, f32>::new(); |
| 1448 | |
| 1449 | for i in 10..20 { |
| 1450 | m.insert(i, i as f32, &mut f, &()); |
| 1451 | } |
| 1452 | |
| 1453 | assert_eq!( |
| 1454 | m.into_iter(f).collect::<Vec<_>>(), |
| 1455 | vec![ |
| 1456 | (10, 10.0), |
| 1457 | (11, 11.0), |
| 1458 | (12, 12.0), |
| 1459 | (13, 13.0), |
| 1460 | (14, 14.0), |
| 1461 | (15, 15.0), |
| 1462 | (16, 16.0), |
| 1463 | (17, 17.0), |
| 1464 | (18, 18.0), |
| 1465 | (19, 19.0), |
| 1466 | ], |
| 1467 | ); |
| 1468 | } |
| 1469 | |
| 1470 | #[test] |
| 1471 | fn range() { |
no test coverage detected