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

Fix empty ranges returned by Gaps iterators #45

Merged
merged 3 commits into from
May 17, 2022
Merged

Conversation

jeffparsons
Copy link
Owner

They were sometimes returning empty ranges still, and the implementation
was unnecessarily complex. There may well have been other bugs hiding in
there.

Fixes #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.

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 #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.
@jeffparsons jeffparsons merged commit 5dc7cbd into master May 17, 2022
@jeffparsons jeffparsons deleted the spruce_up_tests branch May 17, 2022 13:22
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.

gaps return empty ranges
1 participant