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

Simplify writing tests for how rounds should end #107

Merged
merged 5 commits into from
Oct 8, 2024

Conversation

SimonAlling
Copy link
Owner

@SimonAlling SimonAlling commented Oct 7, 2024

I think we're going to want to write quite a few test cases about how a round should end given some state. This PR adds an expectRoundOutcome function that takes care of advancing the round until the expected final tick and then expect it to end in the specified way.

The new Spawning _ _ case (which is implicitly covered by the deleted _ case) is a bit weird: a round should never re-enter that state, so why do we even have to consider it as a possible outcome of a tick? Maybe something to improve going forward.

💡 git show --ignore-space-change

@SimonAlling SimonAlling marked this pull request as ready for review October 8, 2024 18:46
@SimonAlling SimonAlling merged commit 5aeb79a into main Oct 8, 2024
1 check passed
@SimonAlling SimonAlling deleted the round-ending-tests branch October 8, 2024 18:46
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.

1 participant