Browse Source

lograrithm funktion test

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

6
src/test/test_funktionen.c

@ -37,4 +37,10 @@ void test_absolute(void) {
TEST_ASSERT_EQUAL_FLOAT(5.0, result);
}
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
}
#endif
Loading…
Cancel
Save