|
@ -144,4 +144,11 @@ void test_naturalLogarithmFunction(void) { |
|
|
TEST_ASSERT_EQUAL_FLOAT(0.0, naturalLogarithmFunction(1.0)); |
|
|
TEST_ASSERT_EQUAL_FLOAT(0.0, naturalLogarithmFunction(1.0)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Logarithm with base 2 function |
|
|
|
|
|
void test_logarithmBase2Function(void) { |
|
|
|
|
|
// Your test code here |
|
|
|
|
|
TEST_ASSERT_EQUAL_FLOAT(3.0, logarithmBase2Function(8.0)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |