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

Heap tests improvement #131

Merged
merged 8 commits into from
May 23, 2023
Merged

Heap tests improvement #131

merged 8 commits into from
May 23, 2023

Conversation

makcandrov
Copy link
Contributor

@makcandrov makcandrov commented May 5, 2023

Following discussion #122, this PR improves the tests of the BasicHeap, by implementing fuzzing and making them less dependent on the heap's actual implementation.

I took the opportunity to change the functions fuzzed in TestThreeHeapOrderingInvariantbecause the previous implementation almost always inserted new accounts. Now, it can insert, increase, decrease, and remove with correct probabilities.

I did not refactor the tests of other data structures because it would have required a huge amount of work (maybe left for another time).

@makcandrov makcandrov force-pushed the tests-improvement branch from 2bb28f8 to 2f702c2 Compare May 5, 2023 08:20
Copy link
Contributor

@MerlinEgalite MerlinEgalite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
MerlinEgalite
MerlinEgalite previously approved these changes May 6, 2023
@MerlinEgalite
Copy link
Contributor

can you update the certora part please? or maybe @QGarchery

@makcandrov
Copy link
Contributor Author

The Certora part fails due to #126 (base of this branche)

Tristan22400
Tristan22400 previously approved these changes May 9, 2023
QGarchery
QGarchery previously approved these changes May 9, 2023
@QGarchery
Copy link
Collaborator

can you update the certora part please? or maybe @QGarchery

If I can batch all Certora changes in one go that would be easier for me. Is that ok ?

@makcandrov makcandrov changed the base branch from feature/partition-tests to code-style-change May 9, 2023 14:43
Base automatically changed from code-style-change to main May 23, 2023 13:31
@MerlinEgalite MerlinEgalite dismissed stale reviews from QGarchery, Tristan22400, and themself via bd4ecfc May 23, 2023 13:31
@MerlinEgalite MerlinEgalite merged commit 8f7d8d9 into main May 23, 2023
@MerlinEgalite MerlinEgalite deleted the tests-improvement branch May 23, 2023 13:31
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.

Testing suite improvement
5 participants