Skip to content

Commit

Permalink
fixed test count zeros 32bits
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Assouad committed Oct 7, 2023
1 parent b97e0c9 commit ff3d6dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fastbloom-rs/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,8 @@ fn test_count_zeros() {
vec.set(30);
vec.set(38);
println!("{:?}", vec);
#[cfg(target_pointer_width = "64")]
assert_eq!(vec.count_zeros(), 253);
#[cfg(target_pointer_width = "32")]
assert_eq!(vec.count_zeros(), 125);
}

0 comments on commit ff3d6dc

Please sign in to comment.