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 bug in logic for exhaustIfMultipleContinuing overvote rule #610

Merged
merged 3 commits into from Aug 17, 2022

Conversation

tarheel
Copy link
Contributor

@tarheel tarheel commented Aug 8, 2022

This is a fun one. It definitely calls for a new test. Just waiting for guidance on the best way to do that.

Fixes #554.

@@ -796,9 +796,9 @@ private OvervoteDecision getOvervoteDecision(Set<String> candidateSet) {
if (continuingCandidate != null) { // at least two continuing
decision = OvervoteDecision.EXHAUST;
break;
} else {
continuingCandidate = candidate;
Copy link
Contributor

Choose a reason for hiding this comment

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

🤦

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed.

@tarheel
Copy link
Contributor Author

tarheel commented Aug 16, 2022

OK, test added.

@moldover
Copy link
Contributor

same ask here... get rid of the test_set prefix

@moldover moldover self-requested a review August 17, 2022 01:42
Copy link
Contributor

@moldover moldover left a comment

Choose a reason for hiding this comment

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

Same ask here: remove the 'test_set' prefix from test files and names

@tarheel
Copy link
Contributor Author

tarheel commented Aug 17, 2022

Will do. Please accept the PRs preemptively so I can merge them as soon as I make these trivial updates (which might be at a weird time late tonight).

@tarheel tarheel merged commit c85db6e into develop Aug 17, 2022
@tarheel tarheel deleted the exhausted-2 branch August 17, 2022 06:59
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.

"exhaust if multiple continuing" not working properly
2 participants