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


No differences found