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 IntSet tests invalid since #23138 #23559

Merged
merged 1 commit into from
Sep 2, 2017
Merged

Conversation

rfourquet
Copy link
Member

@rfourquet rfourquet commented Sep 2, 2017

Since #23138 IntSet have the length of their underlying BitVector be
a multiple of 64, so resizing them to something else breaks
this invariant.

cc @mbauman : you made these tests in #20456, what was the intent of this manual resizing?

Now IntSet have the length of their underlying BitVector be
a multiple of 64, so resizing them to something else breaks
this invariant.
@rfourquet rfourquet added bugfix This change fixes an existing bug collections Data structures holding multiple items, e.g. sets test This change adds or pertains to unit tests labels Sep 2, 2017
@mbauman
Copy link
Member

mbauman commented Sep 2, 2017

Ah, nice. I had missed #23138. I think my reasoning here was just as a contrived test for cases with different length storage.

Since I ported a completely manually managed storage to BitArray storage, I didn't even see these opportunities to simplify this further.

@rfourquet
Copy link
Member Author

Ok thanks! (I got confused with the PR numbers when refering to yours, I updated the OP accordingly)

@JeffBezanson JeffBezanson merged commit 9edfa55 into master Sep 2, 2017
@JeffBezanson JeffBezanson deleted the rf/fix-intset-test branch September 2, 2017 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug collections Data structures holding multiple items, e.g. sets test This change adds or pertains to unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants