From c8e46255b0748ee9a6d608826513ddf68e61e40e Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sun, 4 Feb 2024 21:48:39 +0100 Subject: [PATCH] floorvalue Funktion test --- src/test/test_funktionen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/test/test_funktionen.c b/src/test/test_funktionen.c index b0f2bd4..7d7c1b8 100644 --- a/src/test/test_funktionen.c +++ b/src/test/test_funktionen.c @@ -29,7 +29,6 @@ void test_cube(void) { 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 } void test_absolute(void) { @@ -40,26 +39,27 @@ void test_absolute(void) { void test_logarithm(void) { float result = logarithm(100.0); TEST_ASSERT_FLOAT_WITHIN(0.000001, 2.0, result); - // Add more test cases for different inputs and expected outputs } void test_naturalLogarithm(void) { float result = naturalLogarithm(100.0); TEST_ASSERT_FLOAT_WITHIN(0.000001, 4.60517, result); - // Add more test cases for different inputs and expected outputs } void test_power(void) { float result = power(2.0, 3.0); TEST_ASSERT_FLOAT_WITHIN(0.000001, 8.0, result); - // Add more test cases for different inputs and expected outputs } void test_factorial(void) { int result = factorial(5); TEST_ASSERT_EQUAL_INT(120, result); - // Add more test cases for different inputs and expected outputs } +void test_floorValue(void) { + float result = floorValue(5.7); + TEST_ASSERT_EQUAL_FLOAT(5.0, result); +} + #endif \ No newline at end of file