Browse Source

Spaltennnummer>2

remotes/origin/homan
fdai7892 11 months ago
parent
commit
97f63e0b66
  1. 34
      src/test/test_duellist_spielesammlung_projekt.c

34
src/test/test_duellist_spielesammlung_projekt.c

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

Loading…
Cancel
Save