diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 29952ab..719bc23 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -305,6 +305,21 @@ void test_o_wins_onIndex_01_11_21(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_o_wins_onIndex_02_12_22(void) +{ + /* arrange */ + int actual; + int expected = 1; + + char board[][3] = {{' ',' ','O'}, {' ',' ','O'}, {' ',' ','O'}}; + + /* act */ + actual = o_wins_02_12_22(board); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */