Browse Source

Unittest04

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

14
src/test/test_duellist_spielesammlung_projekt.c

@ -253,6 +253,20 @@ void test_calculate_mines_WidthOne(void)
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_calculate_mines_NormalCase(void)
{
/* arrange */
int height = 5;
int width = 5;
int expected = 6;
/* act */
int result = calculate_mines(height, width);
/* assert */
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_calculate_mines_HeightOne(void)
{
/* arrange */

Loading…
Cancel
Save