use btree_range_map::RangeMap; #[test] fn remove_range() { let mut range_map: RangeMap = RangeMap::new(); range_map.insert(00..10, true); range_map.remove(1..9); assert_eq!(range_map.range_count(), 2); assert_eq!(range_map.get(0), Some(&true)); assert_eq!(range_map.get(1), None); assert_eq!(range_map.get(8), None); assert_eq!(range_map.get(9), Some(&true)); assert_eq!(range_map.get(10), None); }