This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed error in bitmap exact chunk. (#377)
- Loading branch information
1 parent
43d8cf5
commit 4e53c2e
Showing
5 changed files
with
30 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use arrow2::bitmap::Bitmap; | ||
|
||
#[test] | ||
fn not_random() { | ||
let iter = (0..100).map(|x| x % 7 == 0); | ||
let iter_not = iter.clone().map(|x| !x); | ||
|
||
let bitmap: Bitmap = iter.collect(); | ||
let expected: Bitmap = iter_not.collect(); | ||
|
||
assert_eq!(!&bitmap, expected); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
mod bitmap_ops; | ||
mod immutable; | ||
mod mutable; | ||
mod utils; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
use arrow2::bitmap::utils::*; | ||
|
||
mod bit_chunks_exact; | ||
mod chunk_iter; | ||
mod iterator; | ||
mod slice_iterator; | ||
|