Browse Source

Test zufallszahlen

remotes/origin/Areeb
fdai7820 11 months ago
parent
commit
75240dad8d
  1. 67
      src/test/test_duellist_spielesammlung_projekt.c

67
src/test/test_duellist_spielesammlung_projekt.c

@ -422,4 +422,71 @@ void test_calculate_mines_HeightWidthFinal(void)
/* assert */
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_generateRandomNumber_withinValidRange(void)
{
/* arrange */
/* act */
int result = generateRandomNumber(1, 100);
/* assert */
TEST_ASSERT_TRUE(result >= 1 && result <= 100);
}
#endif // TEST
Loading…
Cancel
Save