Browse Source

Test Wurzel

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

10
src/test/test_duellist_spielesammlung_projekt.c

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

Loading…
Cancel
Save