Browse Source

Added unittest for squareRootFunction

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

5
src/test/c/test_taschenrechner.c

@ -109,5 +109,10 @@ void test_ConTime(void) {//5 ms to s
}
// Square root function
void test_squareRootFunction(void) {
TEST_ASSERT_EQUAL_FLOAT(2.0, squareRootFunction(4.0));
}
#endif // TEST
Loading…
Cancel
Save