Browse Source

Test für x_wins_00_10_20() erstellt

remotes/origin/habib
Habib 11 months ago
parent
commit
4f300b4357
  1. 15
      src/test/test_funktionen.c

15
src/test/test_funktionen.c

@ -76,4 +76,19 @@ void test_2_toThePowerOf_7(void)
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_x_wins_onIndex_00_10_20(void)
{
/* arrange */
int actual;
int expected = 1;
char board[][3] = {{'X',' ',' '}, {'X',' ',' '}, {'X',' ',' '}};
/* act */
actual = x_wins_00_10_20(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
#endif
Loading…
Cancel
Save