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