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 two bugs related to undeclared write-ins #395

Merged
merged 2 commits into from
Sep 12, 2019
Merged

fix two bugs related to undeclared write-ins #395

merged 2 commits into from
Sep 12, 2019

Conversation

tarheel
Copy link
Contributor

@tarheel tarheel commented Sep 10, 2019

Fixes #397 and #398.

Bug 1 (#397): in a multi-seat contest, if someone wins in the first round, we don't automatically eliminate undeclared write-ins before we eliminate any other candidates. Instead, we treat UWI like a normal candidate, which means we potentially eliminate other candidates with lower tallies first.

Bug 2 (#398): if UWI exceeds the winning threshold in the initial count, we mistakenly elect this candidate.

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.

Looks good.

Copy link
Contributor

@HEdingfield HEdingfield left a comment

Choose a reason for hiding this comment

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

I'd like to see tests included that trigger these two bugs and fail in 1.0.1, but now successfully pass with these changes.

@tarheel
Copy link
Contributor Author

tarheel commented Sep 12, 2019

I'd like to see tests included that trigger these two bugs and fail in 1.0.1, but now successfully pass with these changes.

Yeah, good call. I don't have time to add them at the moment, but will do it soon.

@tarheel tarheel merged commit 08e7929 into develop Sep 12, 2019
@tarheel tarheel deleted the uwi-bug branch September 12, 2019 04:53
@HEdingfield
Copy link
Contributor

@tarheel request on this, and for future PRs: could you please make sure to file issues for each bug (in this case, file two issues and then mark them as resolved immediately by this PR)? It'll make it a lot easier to write the release notes / change log for the next version. I think we need to be more rigorous about this now that we've gone official.

Could you also please submit an issue for anything you defer in a PR, like adding tests?

@tarheel
Copy link
Contributor Author

tarheel commented Sep 20, 2019

Yes, will do.

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.

3 participants