|
@ -49,4 +49,10 @@ void test_naturalLogarithm(void) { |
|
|
// Add more test cases for different inputs and expected outputs |
|
|
// Add more test cases for different inputs and expected outputs |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_power(void) { |
|
|
|
|
|
float result = power(2.0, 3.0); |
|
|
|
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 8.0, result); |
|
|
|
|
|
// Add more test cases for different inputs and expected outputs |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |