Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwashington committed Apr 28, 2021
1 parent 2278a88 commit 21e97a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/src/accounts_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1780,6 +1780,7 @@ pub mod tests {
max = std::cmp::max(max, item);
}
}
assert_eq!(bitfield.get_all().len(), hashset.len());
// range isn't tracked for excess items
if bitfield.excess.len() != bitfield.len() {
let width = if bitfield.is_empty() {
Expand Down

0 comments on commit 21e97a1

Please sign in to comment.