Browse Source

Commited Unit Test trigonometric Functions

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

6
test/test_trigonometricFunctions.c

@ -20,4 +20,10 @@ void test_trigonometricFunctions_trigonometricFunctionsofcos(void) {
double *result;
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);
}
Loading…
Cancel
Save