|
|
@ -21,3 +21,9 @@ void test_trigonometricFunctions_trigonometricFunctionsofcos(void) { |
|
|
|
result = calculate_cos_double(45); |
|
|
|
TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result); |
|
|
|
} |
|
|
|
void test_trigonometricFunctions_trigonometricFunctionsoftan(void) { |
|
|
|
double expectedResult = 1.61977519 ; |
|
|
|
double *result; |
|
|
|
result = calculate_tan_double(45); |
|
|
|
TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result); |
|
|
|
} |