Browse Source

Test Exponenten

remotes/origin/erwin
fdai7820 11 months ago
parent
commit
419d343c52
  1. 79
      src/test/test_duellist_spielesammlung_projekt.c

79
src/test/test_duellist_spielesammlung_projekt.c

@ -576,6 +576,85 @@ void test_compare_aGreaterThanB(void)
/* assert */
TEST_ASSERT_EQUAL_INT(1, result);
}
void test_exponentiation(void)
{
/* arrange */
int base = 2;
int exponent = 3;
/* act */
int result = exponentiation(base, exponent);
/* assert */
TEST_ASSERT_EQUAL_INT(8, result);
}

Loading…
Cancel
Save