Browse Source

Unittest07

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

14
src/test/test_duellist_spielesammlung_projekt.c

@ -325,6 +325,20 @@ void test_calculate_mines_HeightOne(void)
TEST_ASSERT_EQUAL_INT(expected, result);
}
void test_create_minefield_NegativeDimensions(void)
{
/* arrange */
int height = -3;
int width = 4;
char within = '0';
/* act */
char** result = create_minefield(height, width, within);
/* assert */
TEST_ASSERT_NULL(result);
}
#endif // TEST

Loading…
Cancel
Save