]> git.cworth.org Git - empires-server/blobdiff - test
Add message string to the return value of add_move
[empires-server] / test
diff --git a/test b/test
index 0e42462a264d8d8e07063628bf6ff7a951cb4a44..55a4c2956318b04c5ac1e0c7c830cb4b358bfa0f 100755 (executable)
--- a/test
+++ b/test
@@ -299,12 +299,12 @@ TEST_SUBSECTION "Tic Tac Toe /move"
 
 TEST "Move to the center square"
 result=$(tictactoe_move 4)
-test "$result" = "true"
+test "$result" = '{"legal":true}'
 TEST_END
 
 TEST "Move to center square again is now illegal"
 result=$(tictactoe_move 4)
-test "$result" = "false"
+test "$result" = '{"legal":false,"message":"Square is already occupied"}'
 TEST_END
 
 TEST_REPORT