test "$result" != "null"
TEST_END
+# Usage: empathy_players_judging <player_name>
+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 '[]')