Browse Source

Commited Unit Test m in km

remotes/origin/feature
Leon Wolf 11 months ago
parent
commit
45acadf469
  1. 17
      test/test_trigonometricFunctions.c

17
test/test_trigonometricFunctions.c

@ -0,0 +1,17 @@
#include "../src/trigonometricFunctions.h"
#include "unity.h"
#include "limits.h"
void setUp(void) {
// set stuff up here
}
void tearDown(void) {
// clean stuff up here
}
void test_trigonometricFunctions_trigonometricFunctionsofsin(void) {
double expectedResult = 0.850903525 ;
double *result;
result = calculate_sin_double(45);
TEST_ASSERT_DOUBLE_WITHIN(0.1, expectedResult, *result);
}
Loading…
Cancel
Save