]> git.cworth.org Git - lmno-server/commit
Add failing test case for a major match-voting bug
authorCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:55:09 +0000 (07:55 -0700)
committerCarl Worth <cworth@cworth.org>
Sat, 27 Jun 2020 14:56:36 +0000 (07:56 -0700)
commitdccfff8883f2caaf2e9f63aa79ce918a70c08c59
treee98d082cf550b72421aa06c1c93a36d2b1fbb94a
parentaa245121ee40c82e9d96b246ab1fc63cb5fabc5f
Add failing test case for a major match-voting bug

Specifically, the majority requirement for a word match to be
considered succesful has been counting all registered players rather
than only the players actually in the current game.

In the degenerate case, having more inactive registered players than
active would mean that no matches would ever be judged as valid even
with unanimous voting. Obviously, this is a disastrous bug.

The test case added here currently fails, (where one person voting
should be considered a (non-strict) majority in a 2-person game).
test