aboutsummaryrefslogtreecommitdiff
path: root/tictactoe-2/apps/ttt_server/test
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2024-03-04 09:15:01 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2024-03-04 09:15:01 +0100
commitc34d7363b61a9e00c986b79793bf7cdc03e9ea99 (patch)
tree79c9121e2bff6bc938b7b36d1195e5759b163d2c /tictactoe-2/apps/ttt_server/test
parent0be77ac09408c13cc12b5953b9ac7459b549c202 (diff)
downloaderlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.gz
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.bz2
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.tar.xz
erlang-workshop-c34d7363b61a9e00c986b79793bf7cdc03e9ea99.zip
wip
Diffstat (limited to 'tictactoe-2/apps/ttt_server/test')
-rw-r--r--tictactoe-2/apps/ttt_server/test/server_tests.erl14
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).