Skip to content

Commit

Permalink
Don't create empty ranges in proptests
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Oct 17, 2024
1 parent 4c577a3 commit 9bd1943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comparison/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ mod xxhash3_64 {
fn vec_and_index() -> impl Strategy<Value = (Vec<u8>, usize)> {
prop::collection::vec(num::u8::ANY, 0..=32 * 1024).prop_flat_map(|vec| {
let len = vec.len();
(Just(vec), 0..len)
(Just(vec), 0..=len)
})
}

Expand Down

0 comments on commit 9bd1943

Please sign in to comment.