|
@ -37,12 +37,12 @@ void test_absolute_for_5(void) { |
|
|
TEST_ASSERT_EQUAL_FLOAT(5.0, result); |
|
|
TEST_ASSERT_EQUAL_FLOAT(5.0, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void test_logarithm(void) { |
|
|
|
|
|
|
|
|
void test_logarithm_for_100(void) { |
|
|
float result = logarithm(100.0); |
|
|
float result = logarithm(100.0); |
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result); |
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void test_naturalLogarithm(void) { |
|
|
|
|
|
|
|
|
void test_naturalLogarithm_for_100(void) { |
|
|
float result = naturalLogarithm(100.0); |
|
|
float result = naturalLogarithm(100.0); |
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result); |
|
|
TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result); |
|
|
} |
|
|
} |
|
|