Skip to content

Commit

Permalink
chore: format code [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rubik committed Oct 4, 2020
1 parent 62817a4 commit e458044
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/arena.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ mod test {
Some((i * 100 + i, (capacity - i) as usize - 1))
);
}
for i in capacity..2*capacity {
for i in capacity..2 * capacity {
assert_eq!(arena.get(i as u128), None);
}
for i in capacity..2*capacity {
for i in capacity..2 * capacity {
arena.insert(i as u128, i * 100 + i, 2 * i);
}
for i in 0..capacity {
Expand All @@ -109,10 +109,13 @@ mod test {
Some((i * 100 + i, (capacity - i) as usize - 1))
);
}
for (i, j) in (capacity..2*capacity).enumerate() {
for (i, j) in (capacity..2 * capacity).enumerate() {
assert_eq!(
arena.get(i as u128),
Some(((i * 100 + i) as u64, (2*capacity - j) as usize - 1))
Some((
(i * 100 + i) as u64,
(2 * capacity - j) as usize - 1
))
);
}
}
Expand Down

0 comments on commit e458044

Please sign in to comment.