From c387f1ba77c374a41d3902eb3e4a50fa35215192 Mon Sep 17 00:00:00 2001 From: fdai7782 Date: Tue, 6 Feb 2024 16:02:08 +0000 Subject: [PATCH] Added unittest for cosineFunction --- src/test/c/test_taschenrechner.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/c/test_taschenrechner.c b/src/test/c/test_taschenrechner.c index d369a47..eae1acc 100644 --- a/src/test/c/test_taschenrechner.c +++ b/src/test/c/test_taschenrechner.c @@ -120,4 +120,12 @@ void test_sineFunction(void) { TEST_ASSERT_EQUAL_FLOAT(0.0, sineFunction(0.0)); } +// Cosine function +void test_cosineFunction(void) { + // Your test code here + TEST_ASSERT_EQUAL_FLOAT(1.0, cosineFunction(0.0)); +} + + + #endif // TEST