Browse Source

Funktion für O gewinnt waagerecht unten erstellt.

remotes/origin/siamak
Siamak 11 months ago
parent
commit
965cf8007b
  1. 15
      src/test/test_funktionen.c

15
src/test/test_funktionen.c

@ -350,6 +350,21 @@ void test_o_wins_onIndex_10_11_12(void)
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_o_wins_onIndex_20_21_22(void)
{
/* arrange */
int actual;
int expected = 1;
char board[][3] = {{' ',' ',' '}, {' ',' ',' '}, {'O','O','O'}};
/* act */
actual = o_wins_20_21_22(board);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_stringLaenge_von_Kokosnuss(void)
{
/* arrange */

Loading…
Cancel
Save