]> git.cworth.org Git - empires-server/commitdiff
test: Stress the implementation a bit with a mixed-case judging report
authorCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 17:18:00 +0000 (10:18 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 12 Jun 2020 17:18:00 +0000 (10:18 -0700)
With this change to the test, we now have a user submitting a judging
report with "grains of sand" in a list after having received "Grains
of Sand" from the server.

The server currently misscores in this case, so this test case now
fails, (revealing a bug in the server).

test

diff --git a/test b/test
index 27469ee243e44b404cdbcb9bc54d9d1fa7225ff4..c4ddcf598b6775253c9a06fe69f2cc9297afecfb 100755 (executable)
--- a/test
+++ b/test
@@ -542,7 +542,7 @@ test "$result" = '{"valid":true}'
 TEST_END
 
 TEST "Submit word groups from bob"
-result=$(empathy_judging $bob $prompt_id '[["sands","Grains of Sand"],["water","wafer"]]')
+result=$(empathy_judging $bob $prompt_id '[["sands","grains of sand"],["water","wafer"]]')
 test "$result" = '{"valid":true}'
 TEST_END