Skip to content

Commit

Permalink
Add mote tests to play_game_SUITE
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBRO committed Dec 12, 2020
1 parent cff3ee6 commit 6602005
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/play_game_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,15 @@ enpassant_moves(Config) ->
%% simple_game/1
simple_game(Config) ->
Pid = get_pid(Config),
{error, {bad_game, undefined}} = binbo:move(Pid, <<"e2e4">>),
{error, {bad_game, undefined}} = binbo:san_move(Pid, <<"e4">>),
{error, {bad_game, undefined}} = binbo:side_to_move(Pid),
{error, {bad_game, undefined}} = binbo:game_draw(Pid),
{error, {bad_game, undefined}} = binbo:game_draw(Pid, test_draw),
{error, {bad_game, undefined}} = binbo:all_legal_moves(Pid),
{error, {bad_game, undefined}} = binbo:all_legal_moves(Pid, int),
{error, {bad_game, undefined}} = binbo:all_legal_moves(Pid, bin),
{error, {bad_game, undefined}} = binbo:all_legal_moves(Pid, str),
InitialFen = <<"rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1">>,
InitialFen = binbo_fen:initial(),
{ok, continue} = binbo:new_game(Pid),
Expand Down Expand Up @@ -466,6 +475,7 @@ get_pieces_list(Config) ->
%% index_moves/1
index_moves(Config) ->
Pid = get_pid(Config),
{error, {bad_game, undefined}} = binbo:index_move(Pid, 12, 20),
% Initial game
{ok, continue} = binbo:new_game(Pid),
% e2-e4
Expand Down

0 comments on commit 6602005

Please sign in to comment.