Browse Source

Achter Unit Test

main
fdai7172 2 years ago
parent
commit
d8d8065769
  1. 17
      test/test_Modules.c

17
test/test_Modules.c

@ -157,5 +157,22 @@ void test_sortScoreboard_check_if_file_is_being_read(void) {
/* assert */ /* assert */
TEST_ASSERT_EQUAL(0, y); 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 #endif // TEST
Loading…
Cancel
Save