]> git.cworth.org Git - lmno-server/commit
test: Empathy: Extend test to submit judging results with proper capitalization
authorCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 16:56:35 +0000 (09:56 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 16:56:35 +0000 (09:56 -0700)
commit1c0d86cea49a79e94c884ffd4c811fe696db534b
tree6aed074f036f3b2fe5a5159199a9a2aabfa8cd56
parentd98c82ec9daca3155b03408d179e88d837093e91
test: Empathy: Extend test to submit judging results with proper capitalization

In commit abea9915939bd7f5b6e70f12d724f19dc6694ec9 we extended the
test suite to cover the case of players submitting words with mixed
capitalization and we ensured that the server didn't send out any
duplicate words for judging, (that it ignored case when determining
which words were unique).

However, in that commit we still had the players returning the results
of their judging in all lowercase. This is not a good test since
actual clients will return words exactly as they received them.

Here we improve the test by submitting judging results with the same
capitalization that the server used when sending out the
ambiguities. And we also expect that same capitalization to appear in
the final word list.

However, this test currently fails in the final word list _and_ also
fails in the scoring. So this test is exposing a bug that currently
exists in the server.
test