Browse Source

logarithmPlusOne test

remotes/origin/Khaled
Khaled 11 months ago
parent
commit
65c7cafc1c
  1. 6
      src/test/test_funktionen.c

6
src/test/test_funktionen.c

@ -184,4 +184,10 @@ void test_radiansToDegrees(void) {
TEST_ASSERT_EQUAL_FLOAT(90.0, result); TEST_ASSERT_EQUAL_FLOAT(90.0, result);
// Add more test cases for different inputs and expected outputs // Add more test cases for different inputs and expected outputs
} }
void test_logarithmPlusOne(void) {
float result = logarithmPlusOne(10.0);
TEST_ASSERT_EQUAL_FLOAT(2.0, result);
// Add more test cases for different inputs and expected outputs
}
#endif #endif
Loading…
Cancel
Save