|
@ -31,9 +31,9 @@ void test_DoubleBase_ForNegativeExponent(void){ |
|
|
r2 = expIN(-3.0, -3.0); |
|
|
r2 = expIN(-3.0, -3.0); |
|
|
r3 = expIN(-2.0, -2.0); |
|
|
r3 = expIN(-2.0, -2.0); |
|
|
|
|
|
|
|
|
printf("Result 1: %d\n", r1); |
|
|
|
|
|
printf("Result 2: %d\n", r2); |
|
|
|
|
|
printf("Result 3: %d\n", r3); |
|
|
|
|
|
|
|
|
printf("Result 1: %f\n", r1); |
|
|
|
|
|
printf("Result 2: %f\n", r2); |
|
|
|
|
|
printf("Result 3: %f\n", r3); |
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_FLOAT(0.5, r1); |
|
|
TEST_ASSERT_EQUAL_FLOAT(0.5, r1); |
|
|
TEST_ASSERT_EQUAL_FLOAT(-0.0370370373, r2); |
|
|
TEST_ASSERT_EQUAL_FLOAT(-0.0370370373, r2); |
|
|