From a669bdab52bd67e9dc6e31f7dec65380f127541e Mon Sep 17 00:00:00 2001 From: fdai7775 Date: Fri, 2 Feb 2024 13:13:45 +0000 Subject: [PATCH] Test --- test/test_tictactoe.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test/test_tictactoe.c b/test/test_tictactoe.c index bddd208..5770e74 100644 --- a/test/test_tictactoe.c +++ b/test/test_tictactoe.c @@ -53,11 +53,13 @@ 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(); @@ -65,17 +67,18 @@ void test_checkWinner_vertikalerGewinner(void) { /* überprüfen */ TEST_ASSERT_EQUAL_CHAR('O', result); reset_board(); + displayBoard(); } void test_checkWinner_horizontalerGewinner(void) { /* arrangieren */ char result; - makeMove(1); - makeMove(4); - makeMove(2); - makeMove(5); - makeMove(3); + //makeMove(1); + //makeMove(4); + //makeMove(2); + //makeMove(5); + //makeMove(3); /* handeln */ result = checkWinner();