Skip to content

Commit 4d85314

Browse files
Update test commentary for shared root removal
1 parent 13f6d77 commit 4d85314

File tree

1 file changed

+2
-9
lines changed
  • src/liballoc/tests/btree

1 file changed

+2
-9
lines changed

src/liballoc/tests/btree/map.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn test_basic_large() {
6767
#[test]
6868
fn test_basic_small() {
6969
let mut map = BTreeMap::new();
70-
// Empty, shared root:
70+
// Empty, root is absent (None):
7171
assert_eq!(map.remove(&1), None);
7272
assert_eq!(map.len(), 0);
7373
assert_eq!(map.get(&1), None);
@@ -123,7 +123,7 @@ fn test_basic_small() {
123123
assert_eq!(map.values().collect::<Vec<_>>(), vec![&4]);
124124
assert_eq!(map.remove(&2), Some(4));
125125

126-
// Empty but private root:
126+
// Empty but root is owned (Some(...)):
127127
assert_eq!(map.len(), 0);
128128
assert_eq!(map.get(&1), None);
129129
assert_eq!(map.get_mut(&1), None);
@@ -263,13 +263,6 @@ fn test_iter_mut_mutation() {
263263
do_test_iter_mut_mutation::<Align32>(144);
264264
}
265265

266-
#[test]
267-
fn test_into_key_slice_with_shared_root_past_bounds() {
268-
let mut map: BTreeMap<Align32, ()> = BTreeMap::new();
269-
assert_eq!(map.get(&Align32(1)), None);
270-
assert_eq!(map.get_mut(&Align32(1)), None);
271-
}
272-
273266
#[test]
274267
fn test_values_mut() {
275268
let mut a = BTreeMap::new();

0 commit comments

Comments
 (0)