From ddc9e7e673450b6168a0f7b78d64be55b5c9604c Mon Sep 17 00:00:00 2001 From: Leon Wolf Date: Fri, 9 Feb 2024 17:08:08 +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 45e1328..f21eb02 100644 --- a/test/test_trigonometricFunctions.c +++ b/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); } \ No newline at end of file