From 45acadf4692c83a242ea9c4ce83214dfe5377664 Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:07:06 +0100 Subject: [PATCH] Commited Unit Test m in km --- test/test_trigonometricFunctions.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/test_trigonometricFunctions.c diff --git a/test/test_trigonometricFunctions.c b/test/test_trigonometricFunctions.c new file mode 100644 index 0000000..04c55df --- /dev/null +++ b/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); +}