()
| 191 | |
| 192 | #[test] |
| 193 | fn test_iterator_consistency() { |
| 194 | let mut tree = create_tree_4(); |
| 195 | |
| 196 | insert_sequential_range(&mut tree, 10); |
| 197 | |
| 198 | // Multiple iterations should give same results |
| 199 | let iter1: Vec<_> = tree.items().map(|(k, _)| *k).collect(); |
| 200 | let iter2: Vec<_> = tree.items().map(|(k, _)| *k).collect(); |
| 201 | |
| 202 | assert_eq!(iter1, iter2, "Multiple iterations should be consistent"); |
| 203 | |
| 204 | // Range iteration should be consistent with full iteration |
| 205 | let range_all: Vec<_> = tree.range(..).map(|(k, _)| *k).collect(); |
| 206 | |
| 207 | assert_eq!(iter1, range_all, "Range(..) should match full iteration"); |
| 208 | } |
| 209 | |
| 210 | #[test] |
| 211 | fn test_arena_utilization() { |
nothing calls this directly
no test coverage detected