Skip to content

Commit

Permalink
improve the tests slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
irevoire committed Jun 28, 2022
1 parent b6d543e commit b164cce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions src/bitmap/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -671,13 +671,11 @@ mod test {
b in RoaringBitmap::arbitrary(),
c in RoaringBitmap::arbitrary()
) {
let mut ref_assign = RoaringBitmap::new();
ref_assign |= &a;
let mut ref_assign = a.clone();
ref_assign |= &b;
ref_assign |= &c;

let mut own_assign = RoaringBitmap::new();
own_assign |= a.clone();
let mut own_assign = a.clone();
own_assign |= b.clone();
own_assign |= c.clone();

Expand Down
6 changes: 2 additions & 4 deletions src/treemap/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,13 +856,11 @@ mod test {
b in RoaringTreemap::arbitrary(),
c in RoaringTreemap::arbitrary()
) {
let mut ref_assign = RoaringTreemap::new();
ref_assign |= &a;
let mut ref_assign = a.clone();
ref_assign |= &b;
ref_assign |= &c;

let mut own_assign = RoaringTreemap::new();
own_assign |= a.clone();
let mut own_assign = a.clone();
own_assign |= b.clone();
own_assign |= c.clone();

Expand Down

0 comments on commit b164cce

Please sign in to comment.