-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Property-based tests for sets
, ordsets
and gb_sets
#7256
Conversation
CT Test Results 2 files 90 suites 40m 3s ⏱️ Results for commit cc63f8c. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
40f058a
to
011d692
Compare
The last commit refactors a lot of what has been done before, going for a model-like approach. It also tests all functions on all set implementations (the ones they have in common, that is). |
011d692
to
01893c7
Compare
The last commit does some cleanup (ordering/grouping of functions, comments) and adds another property to test sequences of modifying operations. |
On a side note, this suite makes heavy use of the |
sets
, ordsets
and gb_sets
sets
, ordsets
and gb_sets
sets
, ordsets
and gb_sets
I marked the PR as WIP, as it still needs some touching up :) |
01893c7
to
c2a6d1c
Compare
Last commit adds tests for the new functions |
As it stands, this suite alone generates ~800,000 new atoms. Waiting for #7364 which should remedy this. |
c2a6d1c
to
c21d1c4
Compare
The last commit uses the atomlimit-safe generators of |
sets
, ordsets
and gb_sets
sets
, ordsets
and gb_sets
c21d1c4
to
2b1799c
Compare
Please squash your commits. |
2b1799c
to
d1d007d
Compare
Done 😉 |
Thanks! Added to our daily builds. |
I will now go on vacation and probably be back in about four weeks. @jhogberg will take care of merging this pull request if no problems turn up in our daily builds. |
Enjoy 👋
And hi John 🤝 |
d1d007d
to
2e5b315
Compare
Rebased on current master to make use of #7495. |
@jhogberg @bjorng I wonder, what is the status of this PR? I just now noticed that the testing label was removed shortly after I pushed the last update 🤔 On another note, I realized that the tests in this suite cover only the functions that the three set implementations have in common, but |
The status is that it fell between the cracks. 😅 I'll merge this in the next few days if the tests pass. :)
Feel free to do the latter in a separate PR. |
Ah, no problem 😉
Will do 👍 |
Co-authored-by: Jan Uhlig <[email protected]>
2e5b315
to
cc63f8c
Compare
Thanks for your pull request. |
This PR provides property-based tests for the
sets
module.It does not test
sets:new/0,1
, since there isn't much that could be property-tested there.