From 410cda9c964b4a0ff41a3fafd77926e9bbbf23ac Mon Sep 17 00:00:00 2001 From: fdai7492 Date: Wed, 31 Jan 2024 04:13:31 +0000 Subject: [PATCH] =?UTF-8?q?refactoring:=20l=C3=B6schen=20des=20alten=20Tes?= =?UTF-8?q?t,=20Anton=20Lohrey?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_schach.c | 107 --------------------------------------------- 1 file changed, 107 deletions(-) delete mode 100644 test/test_schach.c diff --git a/test/test_schach.c b/test/test_schach.c deleted file mode 100644 index 57d77c3..0000000 --- a/test/test_schach.c +++ /dev/null @@ -1,107 +0,0 @@ -#ifdef TEST - -#include "unity.h" - -#include "schach.h" - -#include "string.h" -void setUp(void) -{ -} - -void tearDown(void) -{ -} - -void test_print_Schachfeld(void){ - /* arrange */ - char expected = 'S'; - int x = 8; - int y = 8; - - /* act */ - char** Spielfeld = create_Schachfeld(x, y); - - /* assert */ - TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[5][0]); - TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[4][3]); -} - -void test_print_Schachfeld_Turm_weiss(void){ - /* arrange */ - char expected = 'T'; - int x = 8; - int y = 8; - - /* act */ - char** Spielfeld = create_Schachfeld(x, y); - - /* assert */ - TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][0]); - TEST_ASSERT_EQUAL_CHAR(expected,Spielfeld[0][7]); -} - -void test_print_Schachfeld_Bauern_weiss(void){ - /* arrange */ - char expected = 'B'; - int x = 8; - int y = 8; - - /* act */ - char** Spielfeld = create_Schachfeld(x, y); - - /* assert */ - for(int l = 0;l