Browse Source

Commited Unit Test trigonometric Functions

remotes/origin/feature
Leon Wolf 11 months ago
parent
commit
b4476ef181
  1. 6
      test/test_trigonometricFunctions.c

6
test/test_trigonometricFunctions.c

@ -15,3 +15,9 @@ void test_trigonometricFunctions_trigonometricFunctionsofsin(void) {
result = calculate_sin_double(45); result = calculate_sin_double(45);
TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result); TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result);
} }
void test_trigonometricFunctions_trigonometricFunctionsofcos(void) {
double expectedResult = 0.525321989 ;
double *result;
result = calculate_cos_double(45);
TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result);
}
Loading…
Cancel
Save