Skip to content

Commit

Permalink
Update test commentary for shared root removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Mar 20, 2020
1 parent 13f6d77 commit 4d85314
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/liballoc/tests/btree/map.rs
Expand Up @@ -67,7 +67,7 @@ fn test_basic_large() {
#[test]
fn test_basic_small() {
let mut map = BTreeMap::new();
// Empty, shared root:
// Empty, root is absent (None):
assert_eq!(map.remove(&1), None);
assert_eq!(map.len(), 0);
assert_eq!(map.get(&1), None);
Expand Down Expand Up @@ -123,7 +123,7 @@ fn test_basic_small() {
assert_eq!(map.values().collect::<Vec<_>>(), vec![&4]);
assert_eq!(map.remove(&2), Some(4));

// Empty but private root:
// Empty but root is owned (Some(...)):
assert_eq!(map.len(), 0);
assert_eq!(map.get(&1), None);
assert_eq!(map.get_mut(&1), None);
Expand Down Expand Up @@ -263,13 +263,6 @@ fn test_iter_mut_mutation() {
do_test_iter_mut_mutation::<Align32>(144);
}

#[test]
fn test_into_key_slice_with_shared_root_past_bounds() {
let mut map: BTreeMap<Align32, ()> = BTreeMap::new();
assert_eq!(map.get(&Align32(1)), None);
assert_eq!(map.get_mut(&Align32(1)), None);
}

#[test]
fn test_values_mut() {
let mut a = BTreeMap::new();
Expand Down

0 comments on commit 4d85314

Please sign in to comment.