Skip to content

Conversation

@agustinmista
Copy link
Contributor

@agustinmista agustinmista commented Dec 15, 2025

This PR implements state-machine tests for the PerasVoteDB using quickcheck-dynamic. Notably, we define rather constrained generators to increase the chances of (among others):

  • Voting for the same target more than once (normal behavior),
  • Voting more than once per round (PerasVoteAlreadyInDB),
  • Two voting targets becoming winners (MultipleWinnersInRound)

@agustinmista agustinmista self-assigned this Dec 15, 2025
@agustinmista agustinmista force-pushed the peras/vote-db-tests branch 3 times, most recently from 7dab848 to 6b35d34 Compare December 18, 2025 12:28
@agustinmista agustinmista force-pushed the peras/vote-db branch 4 times, most recently from 8127942 to 748f5a4 Compare December 24, 2025 13:26
@agustinmista agustinmista force-pushed the peras/vote-db-tests branch 3 times, most recently from d690be1 to 0c8ce7c Compare December 30, 2025 12:13
@agustinmista agustinmista changed the title [WIP] implementing state-machine tests for PerasVoteDB [Peras 15] State-machine tests for PerasVoteDB Dec 31, 2025
agustinmista and others added 2 commits December 31, 2025 11:28
This commit implements state-machine tests for the PerasVoteDB using
quickcheck-dynamic. Notably, we define rather constrained generators to
increase the chances of (among others):

* Voting for the same target more than once (normal behavior),
* Voting more than once per round (PerasVoteAlreadyInDB),
* Two voting targets becoming winners (MultipleWinnersInRound)

Co-authored-by: Nicolas BACQUEY <[email protected]>
Co-authored-by: Thomas BAGREL <[email protected]>
Co-authored-by: Agustin Mista <[email protected]>
Co-authored-by: Nicolas BACQUEY <[email protected]>
Co-authored-by: Thomas BAGREL <[email protected]>
Co-authored-by: Agustin Mista <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants