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