From b4476ef1810b1f3c5fc4d381f59ffc790fe8a110 Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:07:47 +0100 Subject: [PATCH] Commited Unit Test trigonometric Functions --- test/test_trigonometricFunctions.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_trigonometricFunctions.c b/test/test_trigonometricFunctions.c index 04c55df..45e1328 100644 --- a/test/test_trigonometricFunctions.c +++ b/test/test_trigonometricFunctions.c @@ -15,3 +15,9 @@ void test_trigonometricFunctions_trigonometricFunctionsofsin(void) { 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); +} \ No newline at end of file