Browse Source

sine funktion test

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

6
src/test/test_funktionen.c

@ -137,4 +137,10 @@ void test_howManyTimes_e_appearsIn_Beere(void)
TEST_ASSERT_EQUAL_INT(expected, actual);
}
void test_sine(void) {
float result = sine(0.5);
TEST_ASSERT_FLOAT_WITHIN(0.000001, 0.479426, result);
}
#endif
Loading…
Cancel
Save