Verify tree ordering after operations
(tree: &BPlusTreeMap<i32, String>)
| 310 | |
| 311 | /// Verify tree ordering after operations |
| 312 | pub fn verify_ordering(tree: &BPlusTreeMap<i32, String>) { |
| 313 | let items: Vec<_> = tree.items().collect(); |
| 314 | for i in 1..items.len() { |
| 315 | if items[i - 1].0 >= items[i].0 { |
| 316 | panic!("Items out of order after operations!"); |
| 317 | } |
| 318 | } |
| 319 | } |
| 320 | |
| 321 | /// Verify tree ordering for integer trees |
| 322 | pub fn verify_ordering_int(tree: &BPlusTreeMap<i32, i32>) { |
no test coverage detected