diff --git a/src/test/test_duellist_spielesammlung_projekt.c b/src/test/test_duellist_spielesammlung_projekt.c index fa80058..1c9738c 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -160,6 +160,20 @@ void test_getNumberOfMoves_returns_correct_number_of_moves(void) { TEST_ASSERT_EQUAL(2, moves); } +void test_BoardFull_returns_false_when_board_is_not_full(void) { + // Arrange + TicTacToeGame game = { .board = {{PLAYER_X, EMPTY, EMPTY}, + {EMPTY, PLAYER_O, EMPTY}, + {EMPTY, EMPTY, EMPTY}}, + .currentPlayer = PLAYER_X }; + + // Act + int boardFull = BoardFull(&game); + + // Assert + TEST_ASSERT_FALSE(boardFull); +} +