Browse Source

Test Wurzel mit negative Zahl

remotes/origin/erwin
fdai7820 11 months ago
parent
commit
4f9aa23a5f
  1. 10
      src/test/test_duellist_spielesammlung_projekt.c

10
src/test/test_duellist_spielesammlung_projekt.c

@ -615,7 +615,17 @@ void test_squareRoot_validNumber(void)
TEST_ASSERT_EQUAL_INT(5, result);
}
void test_squareRoot_negativeNumber(void)
{
/* arrange */
int number = -5;
/* act */
int result = squareRoot(number);
/* assert */
TEST_ASSERT_EQUAL_INT(0, result);
}

Loading…
Cancel
Save