()
| 37 | |
| 38 | #[test] |
| 39 | fn test_single_insertion() { |
| 40 | println!("Creating tree..."); |
| 41 | let mut tree: BPlusTreeMap<i32, String> = BPlusTreeMap::new(4).unwrap(); |
| 42 | |
| 43 | println!("Inserting one item..."); |
| 44 | tree.insert(1, "one".to_string()); |
| 45 | |
| 46 | println!("Getting leaf count..."); |
| 47 | let count = tree.leaf_count(); |
| 48 | println!("Leaf count: {}", count); |
| 49 | |
| 50 | assert_eq!(count, 1); // Should still have 1 leaf |
| 51 | } |
| 52 | |
| 53 | #[test] |
| 54 | fn test_split_balance() { |
nothing calls this directly
no test coverage detected