Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion roaring/tests/range_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ proptest! {
fn proptest_range_boundaries(
// Ensure we can always subtract one from start
start in 1..=262_143_u32,
len in 0..=262_143_u32,
// An empty range is always contained, so len must be non-zero for the negative cases to hold
len in 1..=262_143_u32,
) {
let mut bitmap = RoaringBitmap::new();
let end = start + len;
Expand Down
4 changes: 3 additions & 1 deletion roaring/tests/treemap_range_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,10 @@ proptest! {

#[test]
fn proptest_range_boundaries(
// Ensure we can always subtract one from start
start in 1..=262_143_u64,
len in 0..=262_143_u64,
// An empty range is always contained, so len must be non-zero for the negative cases to hold
len in 1..=262_143_u64,
) {
let mut rb = RoaringTreemap::new();
let end = start + len;
Expand Down
Loading