Browse Source

naturalLogarithmPlusOne test

remotes/origin/Khaled
Khaled 11 months ago
parent
commit
05f5c81d72
  1. 7
      src/test/test_funktionen.c

7
src/test/test_funktionen.c

@ -190,4 +190,11 @@ void test_logarithmPlusOne(void) {
TEST_ASSERT_EQUAL_FLOAT(2.0, result); TEST_ASSERT_EQUAL_FLOAT(2.0, result);
// Add more test cases for different inputs and expected outputs // Add more test cases for different inputs and expected outputs
} }
void test_naturalLogarithmPlusOne(void) {
float result = naturalLogarithmPlusOne(10.0);
TEST_ASSERT_EQUAL_FLOAT(3.302585, result);
// Add more test cases for different inputs and expected outputs
}
#endif #endif
Loading…
Cancel
Save