From 8acc1734b8acdbc480ea8da904bf8e8072994cda Mon Sep 17 00:00:00 2001 From: fdai7775 Date: Fri, 2 Feb 2024 11:02:52 +0000 Subject: [PATCH] Test is Valid move --- test/test_tictactoe.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index 324cac9..fb2e499 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -46,4 +46,15 @@ void test_checkLine_horizontalerGewinner(void) { TEST_ASSERT_EQUAL_CHAR('X', result); } +void test_isValidMove_gueltigerZug(void) { + /* arrangieren */ + int result; + int choice = 5; + + /* handeln */ + result = isValidMove(choice); + + /* überprüfen */ + TEST_ASSERT_EQUAL_INT(1, result); +} #endif // TEST