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

Merge in upstream & rename to vulkano-rangemap #1

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

AustinJ235
Copy link
Member

No description provided.

Rua and others added 17 commits March 7, 2022 21:05
Now the sparse and dense maps are both converted to Vecs
(items in dense map are coalesced by its new iterator)
and compared. We'll get better messages out of test assertions
this way, and it all feels a little bit neater.

I've done this because I'm planning to use the dense map
in more tests.
They were sometimes returning empty ranges still,
and the implementation was unnecessarily complex.
There may well have been other bugs hiding in there.

Fixes jeffparsons#43.

This also adds fuzzing of the gaps iterators to get
a bit more confidence that they're actually right now,
including fuzzing the size of the outer range.
Fix empty ranges returned by `Gaps` iterators
Contains more `Gaps` iterator fixes. This time with fuzz testing
to gain some confidence that it's actually right this time.
An empty gap is meaningless, and an empty outer range
has no values that could be considered a gap.

I've also yet again slightly simplified the gaps logic to make
it clearer what's going on.
Don't yield an empty gap for an empty outer range
Contains fix for an empty gap being yielded for an empty outer range.
Adds a test for `Gaps` iterator where the outer range lies within
the first of two stored ranges.

``Bash
---- map::tests::_has_rangemap_v1_0_2_return_start_greater_than_end_gaps stdout ----
thread 'map::tests::_has_rangemap_v1_0_2_return_start_greater_than_end_gaps' panicked at 'assertion failed: `(left == right)`
  left: `Some(5..3)`,
 right: `None`', src/map.rs:1239:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

See also issue jeffparsons#47
[test] Add test case that failed on v1.0.2
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.

4 participants