Browse Source

Test checkLine horizontaler Gewinner

remotes/origin/Ariana
fdai7775 11 months ago
parent
commit
0cc54a8fe5
  1. 13
      test/test_tictactoe.c

13
test/test_tictactoe.c

@ -33,4 +33,17 @@ void test_if_identical(void){
/* assert */
TEST_ASSERT_EQUAL_CHAR(a, result);
}
void test_checkLine_horizontalerGewinner(void) {
/* arrange */
char result;
char a = 'X', b = 'X', c = 'X';
/* assert */
result = checkLine(a, b, c);
/* überprüfen */
TEST_ASSERT_EQUAL_CHAR('X', result);
}
}
#endif // TEST
Loading…
Cancel
Save