]> git.cworth.org Git - lmno-server/commitdiff
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)
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).


No differences found