From b1d255fee6b1e8af6ae7fab43ded2f22ebdf9b83 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 16:20:49 +0100 Subject: [PATCH] cuberoot 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 a49ef97..26c8030 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -26,4 +26,10 @@ void test_cube(void) { TEST_ASSERT_EQUAL_FLOAT(8.0, result); } +void test_cubeRoot(void) { + float result = cubeRoot(27.0); + TEST_ASSERT_EQUAL_FLOAT(3.0, result); + // Add more test cases for different inputs and expected outputs +} + #endif \ No newline at end of file