|
|
@ -37,4 +37,10 @@ void test_absolute(void) { |
|
|
|
TEST_ASSERT_EQUAL_FLOAT(5.0, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_logarithm(void) { |
|
|
|
float result = logarithm(100.0); |
|
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result); |
|
|
|
// Add more test cases for different inputs and expected outputs |
|
|
|
} |
|
|
|
|
|
|
|
#endif |