You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#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); } void test_trigonometricFunctions_trigonometricFunctionsofcos(void) { double expectedResult = 0.525321989 ; 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); }
|