X-Git-Url: https://git.cworth.org/git?p=empires-server;a=blobdiff_plain;f=test;h=703f005cfce3ec707f237b5df74321214eae8c25;hp=45dbbe32fbdfc943e445d77b387b279b4c0de252;hb=6242e4b208d33d6dfe887ab19ace65d9060c06be;hpb=422dafa274b3e9858621f1973c98e313fc0213c8 diff --git a/test b/test index 45dbbe3..703f005 100755 --- a/test +++ b/test @@ -742,6 +742,18 @@ result=$(echo $(empathy_ambiguities alice)) test "$result" != "null" TEST_END +# Usage: empathy_players_judging +empathy_players_judging() +{ + empathy_get_event $1 game-state | jq .players_judging[] +} + +TEST "Verify active players listed as judging" +# echo here is to strip newlines +result=$(echo $(empathy_players_judging alice)) +test "$result" = '"alice" "bob" "charlie"' +TEST_END + TEST "Submit word groups from majority" empathy_judged alice $prompt_id '[]' >/dev/null result=$(empathy_judged bob $prompt_id '[]')