()
| 260 | |
| 261 | #[test] |
| 262 | fn triggers_node_split() { |
| 263 | let mut tree = RTree::new(); |
| 264 | let count = LEAF_CAPACITY * 3; |
| 265 | for i in 0..count as u64 { |
| 266 | tree.insert(make_entry(i, (i as f64) * 0.1, (i as f64) * 0.1)); |
| 267 | } |
| 268 | assert_eq!(tree.len(), count); |
| 269 | let all = tree.search(&BoundingBox::new(-180.0, -90.0, 180.0, 90.0)); |
| 270 | assert_eq!(all.len(), count); |
| 271 | } |
| 272 | |
| 273 | #[test] |
| 274 | fn entries_enumeration() { |
nothing calls this directly
no test coverage detected