From 2254de3bcff051492847fae9c37c71fc9b309c88 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 20:26:59 +0100 Subject: [PATCH] cosine Funktion test --- src/test/test_funktionen.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 3f9817b..67e690f 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -143,4 +143,11 @@ void test_sine(void) { TEST_ASSERT_EQUAL_FLOAT(0.479426, result); } +void test_cosine(void) { + float result = cosine(1.0); + TEST_ASSERT_EQUAL_FLOAT(0.540302, result); + // Add more test cases for different inputs and expected outputs +} + + #endif \ No newline at end of file