Browse Source

Unittest09

remotes/origin/Daniel
Daniel M 11 months ago
parent
commit
80e53a4f80
  1. 14
      src/test/test_duellist_spielesammlung_projekt.c

14
src/test/test_duellist_spielesammlung_projekt.c

@ -353,6 +353,20 @@ void test_calculate_mines_HeightZero(void)
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_calculate_mines_HeightWidthNumber(void)
{
/* arrange */
int height = 4;
int width = 6;
int expected = 6;
/* act */
int result = calculate_mines(height, width);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, result);
}
#endif // TEST

Loading…
Cancel
Save