Specifically, by changing bob's answer of "surfers" to "sand" he
should now receive one less point than before. That's because
"surfers" was worth one point (since only bob submitted it), but now
"sand" is worth 0. And _that's_ because bob is already getting full
credit of 3 points from "sands" for matching everybody, so he doesn't
deserve any additional credit for putting down an additional answer
that the group decided is equivalent to one he already has.
TEST_END
TEST "Submit from bob succeeds"
TEST_END
TEST "Submit from bob succeeds"
-result=$(empathy_answer $bob $prompt_id '"surfers", "sands", "sunlight", "towels"')
+result=$(empathy_answer $bob $prompt_id '"sand", "sands", "sunlight", "towels"')
test "$result" = '{"valid":true}'
TEST_END
test "$result" = '{"valid":true}'
TEST_END
TEST "Received all unique words"
# echo here is to strip newlines
result=$(echo $(empathy_ambiguities $alice))
TEST "Received all unique words"
# echo here is to strip newlines
result=$(echo $(empathy_ambiguities $alice))
-test "$result" = '"sun" "sand" "water" "people" "surfers" "sands" "sunlight" "towels" "sunshine" "grains of sand" "wafer"'
+test "$result" = '"sun" "sand" "water" "people" "sands" "sunlight" "towels" "sunshine" "grains of sand" "wafer"'
TEST_END
TEST "Submit word groups from alice"
TEST_END
TEST "Submit word groups from alice"
TEST "Verify final scores as expected"
# echo here is to strip newlines
result=$(echo $(empathy_scores $alice))
TEST "Verify final scores as expected"
# echo here is to strip newlines
result=$(echo $(empathy_scores $alice))
-test "$result" = '"charlie" 9 "alice" 8 "bob" 7'
+test "$result" = '"charlie" 9 "alice" 8 "bob" 6'