Merge branch 'rewrite' of github.com:jeena/GGS into rewrite

This commit is contained in:
Jeena Paradies 2011-02-17 14:14:41 +01:00
commit 47017d3afc

View file

@ -9,7 +9,10 @@ start_link_test() ->
%% @doc Given that start_link returned {ok, Player}. Notify shall always return ok and %% @doc Given that start_link returned {ok, Player}. Notify shall always return ok and
%% deliver a specified message through the socket. %% deliver a specified message through the socket.
notify_test() -> notify_test() ->
ggs_logger:not_implemented(). Player = start_link("bad arg"),
Message = {"something", ""},
Ret = ggs_player:notify(Player, self(), Message)
?assertNot(ok =:= Ret).
%% @doc Given that start_link returned {ok, Player}. get_token shall always return a valid %% @doc Given that start_link returned {ok, Player}. get_token shall always return a valid
%% player token. a valid token should be unique. %% player token. a valid token should be unique.
@ -19,5 +22,6 @@ get_token_test() ->
%% @doc Given that start_link returned {ok, Pid}. There shouldn't be possible to %% @doc Given that start_link returned {ok, Pid}. There shouldn't be possible to
%% execute this function with the same Player and Table arguments twice. %% execute this function with the same Player and Table arguments twice.
stop_test() -> stop_test() ->
ggs_logger:not_implemented(). Player = start_link(something),
Table = test,
ok = stop(Player, Table).