Skip to content

Commit

Permalink
bumpup version
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Jun 30, 2024
1 parent 75c2142 commit a1c70b5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/map/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,30 +153,18 @@ fn test_empty_map_anon_unify() {
fn full_in(l: impl FnOnce(usize) -> SkipMap) {
let l = l(1000);
let mut found_arena_full = false;

let mut full_at = 0;
for i in 0..100 {
if let Err(e) = l.get_or_insert(0, &make_int_key(i), &make_value(i)) {
assert!(matches!(
e,
Error::Arena(ArenaError::InsufficientSpace { .. })
));
found_arena_full = true;
full_at = i;
break;
}
}

assert!(found_arena_full);

let e = l
.get_or_insert(0, &make_int_key(full_at), &make_value(full_at))
.unwrap_err();

assert!(matches!(
e,
Error::Arena(ArenaError::InsufficientSpace { .. })
));
}

#[test]
Expand Down

0 comments on commit a1c70b5

Please sign in to comment.