Browse Source

Test is Valid move

remotes/origin/Ariana
fdai7775 11 months ago
parent
commit
8acc1734b8
  1. 11
      test/test_tictactoe.c

11
test/test_tictactoe.c

@ -46,4 +46,15 @@ void test_checkLine_horizontalerGewinner(void) {
TEST_ASSERT_EQUAL_CHAR('X', result);
}
void test_isValidMove_gueltigerZug(void) {
/* arrangieren */
int result;
int choice = 5;
/* handeln */
result = isValidMove(choice);
/* überprüfen */
TEST_ASSERT_EQUAL_INT(1, result);
}
#endif // TEST
Loading…
Cancel
Save