Browse Source

Ungültige Eingabe

remotes/origin/homan
fdai7892 11 months ago
parent
commit
dad362d6f2
  1. 12
      src/test/test_duellist_spielesammlung_projekt.c

12
src/test/test_duellist_spielesammlung_projekt.c

@ -103,19 +103,7 @@ void test_invalid_input(void) {
TEST_ASSERT_EQUAL(INVALID_MOVE, result); TEST_ASSERT_EQUAL(INVALID_MOVE, result);
} }
void test_valid_input(void) {
// Arrange
TicTacToeGame game = { .board = {{EMPTY, EMPTY, EMPTY},
{EMPTY, EMPTY, EMPTY},
{EMPTY, EMPTY, EMPTY}},
.currentPlayer = PLAYER_X };
// Act
GameResult result = makeMove(&game, 1, 1);
// Assert
TEST_ASSERT_EQUAL(SUCCESS, result);
}

Loading…
Cancel
Save