X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test;h=8454ba87d10d03f0f874699f2070de3627908cfd;hb=94e1835efd0f912f1a3eab7b996d86dd3137187c;hp=f117234e66ff98b78aec86f9746c7c2b856089c8;hpb=2a7c76574f343ce95f7100b62b7d42842afaa6da;p=empires-server diff --git a/test b/test index f117234..8454ba8 100755 --- a/test +++ b/test @@ -561,23 +561,23 @@ result=$(echo $(empathy_ambiguities_list $alice)) test "$result" = '"Grains of Sand" "people" "sand" "sands" "sun" "SunLight" "SunShine" "towels" "wafer" "water"' TEST_END -empathy_judging() +empathy_judged() { - curl_post $empathy_game_path/judging/$2 "{ \"word_groups\": $3}" "-b $1" + curl_post $empathy_game_path/judged/$2 "{ \"word_groups\": $3}" "-b $1" } TEST "Submit word groups from alice" -result=$(empathy_judging $alice $prompt_id '[["sun","SunLight","SunShine"],["sand","sands","Grains of Sand"],["water","wafer"]]') +result=$(empathy_judged $alice $prompt_id '[["sun","SunLight","SunShine"],["sand","sands","Grains of Sand"],["water","wafer"]]') 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_judged $bob $prompt_id '[["sands","grains of sand"],["water","wafer"]]') test "$result" = '{"valid":true}' TEST_END TEST "Submit word groups from charlie" -result=$(empathy_judging $charlie $prompt_id '[["SunLight","SunShine"],["sand","Grains of Sand"]]') +result=$(empathy_judged $charlie $prompt_id '[["SunLight","SunShine"],["sand","Grains of Sand"]]') test "$result" = '{"valid":true}' TEST_END