From 19ead45f3b8e517abd5a01f30b02b3179637a028 Mon Sep 17 00:00:00 2001 From: Khaled Date: Sun, 4 Feb 2024 19:55:49 +0100 Subject: [PATCH] sine funktion test --- src/test/test_funktionen.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index 37852c4..28ea824 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -137,4 +137,10 @@ void test_howManyTimes_e_appearsIn_Beere(void) TEST_ASSERT_EQUAL_INT(expected, actual); } + +void test_sine(void) { + float result = sine(0.5); + TEST_ASSERT_FLOAT_WITHIN(0.000001, 0.479426, result); +} + #endif \ No newline at end of file