Browse Source

Zeilennummer<0

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

14
src/test/test_duellist_spielesammlung_projekt.c

@ -118,6 +118,20 @@ void test_valid_input(void) {
}
void test_invalid_input_type1(void) {
// Arrange
TicTacToeGame game = { .board = {{PLAYER_X, EMPTY, EMPTY},
{EMPTY, EMPTY, EMPTY},
{EMPTY, EMPTY, EMPTY}},
.currentPlayer = PLAYER_O };
// Act
GameResult result = makeMove(&game, -1, 0);
// Assert
TEST_ASSERT_EQUAL(INVALID_MOVE, result);
}

Loading…
Cancel
Save