From f5d5943633d7f6f3d764240b3bf810b7776f1dfe Mon Sep 17 00:00:00 2001 From: fdai7775 Date: Fri, 2 Feb 2024 13:15:49 +0000 Subject: [PATCH] Test tear_down --- test/test_tictactoe.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index 5770e74..887aad7 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -8,7 +8,8 @@ void setUp(void){ //Wenn Funktion Vorraussetzungen braucht } void tearDown(void){ - printf("1\n"); + reset_board(); + displayBoard(); } @@ -53,21 +54,17 @@ void test_checkWinner_vertikalerGewinner(void) { char result; // Setze die Daten für einen vertikalen Gewinne - displayBoard(); makeMove(1); makeMove(2); makeMove(4); makeMove(3); makeMove(7); - displayBoard(); /* handeln */ result = checkWinner(); /* überprüfen */ TEST_ASSERT_EQUAL_CHAR('O', result); - reset_board(); - displayBoard(); } void test_checkWinner_horizontalerGewinner(void) {