Browse Source

squareroot funktion test

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

4
src/test/test_funktionen.c

@ -16,5 +16,9 @@ void test_square(void) {
TEST_ASSERT_EQUAL_FLOAT(6.25, result); TEST_ASSERT_EQUAL_FLOAT(6.25, result);
} }
void test_squareRoot(void) {
float result = squareRoot(9.0);
TEST_ASSERT_EQUAL_FLOAT(3.0, result);
}
#endif #endif
Loading…
Cancel
Save