diff options
Diffstat (limited to 'tictactoe-2/apps/ttt_server/test/server_tests.erl')
-rw-r--r-- | tictactoe-2/apps/ttt_server/test/server_tests.erl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tictactoe-2/apps/ttt_server/test/server_tests.erl b/tictactoe-2/apps/ttt_server/test/server_tests.erl new file mode 100644 index 0000000..322f9ed --- /dev/null +++ b/tictactoe-2/apps/ttt_server/test/server_tests.erl @@ -0,0 +1,14 @@ +-module(server_tests). + +-include_lib("eunit/include/eunit.hrl"). + +simple_test() -> + Server = ttt_server:start_local(), + P1 = ttt_server:start_game(Server), + ?debugFmt("P1:~p~n", [P1]), + ttt_server:dump(Server), + ttt_server:stop(Server, self()), + ?assert(receive + ok -> true + after 100 -> false + end). |