Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed May 21, 2018
1 parent 33005fd commit 1356646
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/ChessGame/test_chessgame.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


TEST(chess_game, initialization){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

EXPECT_EQ(game->oldSelectedPiecePosition.x, -1);
Expand Down Expand Up @@ -36,7 +36,7 @@ TEST(chess_game, initialization){
};

TEST(chess_game, unselect_piece){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select PAWN (simulating click on a pawn)
Expand Down Expand Up @@ -74,7 +74,7 @@ TEST(chess_game, unselect_piece){
};

TEST(chess_game, pawn_move_1){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select PAWN (simulating click on a pawn)
Expand Down Expand Up @@ -123,7 +123,7 @@ TEST(chess_game, pawn_move_1){
};

TEST(chess_game, pawn_move_2){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select PAWN (simulating click on a pawn)
Expand Down Expand Up @@ -157,7 +157,7 @@ TEST(chess_game, pawn_move_2){
};

TEST(chess_game, pawn_forbiden_move){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select PAWN (simulating click on a pawn)
Expand Down Expand Up @@ -191,7 +191,7 @@ TEST(chess_game, pawn_forbiden_move){
};

TEST(chess_game, knight_move_1){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select KNIGHT (simulating click on a pawn)
Expand Down Expand Up @@ -225,7 +225,7 @@ TEST(chess_game, knight_move_1){
};

TEST(chess_game, knight_move_2){
ChessGame* game = new ChessGame();
ChessGame* game = new ChessGame("stockfish", 0, true);
game->start();

// Select KNIGHT (simulating click on a pawn)
Expand Down

0 comments on commit 1356646

Please sign in to comment.