pivot-libre / tideman

Implementation of the Tideman ranked pairs algorithm
Apache License 2.0
9 stars 3 forks source link

Parameterize unknown candidate behavior #102

Closed carlschroedl closed 4 years ago

carlschroedl commented 4 years ago

Although I wasn't able to support ignoring stale ballots, I was able to parameterize some behavior in the library -- this PR permits us to either error out or assume unknown candidates are in last place.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.2%) to 86.538% when pulling 6a2aadc3ec129168b542fb9023e6889d801c2ab6 on carlschroedl:parameterizeUnknownCandidateBehavior into c44aa104fb49077238b3afe88654ec0a0714ab19 on pivot-libre:0.x.