Browse Source

Added unittest for exponentialFunction

remotes/origin/kabrel
fdai7782 11 months ago
parent
commit
8e56ff972e
  1. 5
      src/test/c/test_taschenrechner.c

5
src/test/c/test_taschenrechner.c

@ -150,5 +150,10 @@ void test_logarithmBase2Function(void) {
TEST_ASSERT_EQUAL_FLOAT(3.0, logarithmBase2Function(8.0));
}
// Exponential function
void test_exponentialFunction(void) {
// Your test code here
TEST_ASSERT_EQUAL_FLOAT(1.0, exponentialFunction(0.0));
}
#endif // TEST
Loading…
Cancel
Save