|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|