From a069554a3f82e51abd2b26d2b5c6ad1710425fa6 Mon Sep 17 00:00:00 2001 From: Siamak Date: Thu, 8 Feb 2024 13:57:55 +0100 Subject: [PATCH] =?UTF-8?q?Testfunktion=20f=C3=BCr=20O=20gewinnt=20senkrec?= =?UTF-8?q?ht=20in=20der=20Mitte=20wurde=20erstellt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/test_funktionen.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index cc25075..29952ab 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -290,6 +290,21 @@ void test_o_wins_onIndex_00_10_20(void) TEST_ASSERT_EQUAL_INT(expected, actual); } +void test_o_wins_onIndex_01_11_21(void) +{ + /* arrange */ + int actual; + int expected = 1; + + char board[][3] = {{' ','O',' '}, {' ','O',' '}, {' ','O',' '}}; + + /* act */ + actual = o_wins_01_11_21(board); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, actual); +} + void test_stringLaenge_von_Kokosnuss(void) { /* arrange */