Browse Source

cuberoot funktion test

remotes/origin/Abdelrahman
Abdelrahman 11 months ago
parent
commit
b1d255fee6
  1. 6
      src/test/test_funktionen.c

6
src/test/test_funktionen.c

@ -26,4 +26,10 @@ void test_cube(void) {
TEST_ASSERT_EQUAL_FLOAT(8.0, result); 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 #endif
Loading…
Cancel
Save