()
| 459 | |
| 460 | #[test] |
| 461 | fn insert_and_search() { |
| 462 | let mut coll = make_collection(); |
| 463 | for i in 0..100u32 { |
| 464 | coll.insert(vec![i as f32, 0.0, 0.0]); |
| 465 | } |
| 466 | assert_eq!(coll.len(), 100); |
| 467 | let results = coll.search(&[50.0, 0.0, 0.0], 3, 64); |
| 468 | assert_eq!(results.len(), 3); |
| 469 | assert_eq!(results[0].id, 50); |
| 470 | } |
| 471 | |
| 472 | #[test] |
| 473 | fn seal_moves_to_building() { |
nothing calls this directly
no test coverage detected