Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contains_range / range_cardinality functions #237

Merged
merged 5 commits into from
Aug 31, 2022

Conversation

Dr-Emann
Copy link
Member

Fixes #235

Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thank you very much for that, it looks good to me. But would it be possible to add a quickcheck test that:

  • One that creates a RoaringBitmap /Treemap with a random range, adds more numbers into it (in the front and the back of that range) and check that the original range it contained in it.
  • One that does the same but we remove some random numbers from inside this range and check that the range is not contained.

@Kerollmops
Copy link
Member

Note that I just renamed the master branch to main, you should be careful.

@Dr-Emann
Copy link
Member Author

Good call, found a place where I had an off-by-one in the range_cardinality function.

Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for your work and those new tests.
bors merge

@bors
Copy link
Contributor

bors bot commented Aug 31, 2022

Build succeeded:

@bors bors bot merged commit 6ec322f into RoaringBitmap:main Aug 31, 2022
@Dr-Emann Dr-Emann deleted the range_fns branch August 31, 2022 08:16
not-jan pushed a commit to not-jan/roaring-rs that referenced this pull request Aug 31, 2022
237: contains_range / range_cardinality functions r=Kerollmops a=Dr-Emann

Fixes RoaringBitmap#235 

Co-authored-by: Zachary Dremann <dremann@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement contains_range / range_cardinality functions
2 participants