From d8d80657696206d4c763758a71e69f27520b924b Mon Sep 17 00:00:00 2001 From: fdai7172 Date: Fri, 10 Feb 2023 18:35:59 +0100 Subject: [PATCH] Achter Unit Test --- test/test_Modules.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/test_Modules.c b/test/test_Modules.c index 3e91d66..4c3409e 100644 --- a/test/test_Modules.c +++ b/test/test_Modules.c @@ -157,5 +157,22 @@ void test_sortScoreboard_check_if_file_is_being_read(void) { /* assert */ TEST_ASSERT_EQUAL(0, y); } +void test_generateField_check_last_position_change_on_score(void) +{ + /* arrange */ + + scorePoints = 321; + int output = 1; + + /* act */ + generateField(); + + if (field[12][1] != '0') + { + output = 0; + } + /* assert */ + TEST_ASSERT_EQUAL(0, output); +} #endif // TEST \ No newline at end of file