@ -590,7 +590,18 @@ void test_exponentiation(void)
TEST_ASSERT_EQUAL_INT(8, result);
}
void test_exponentiation_negativeExponent(void)
{
/* arrange */
int base = 2;
int exponent = -3;
/* act */
int result = exponentiation(base, exponent);
/* assert */
TEST_ASSERT_EQUAL_INT(0, result);