Browse Source

radiansToDegrees test

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

6
src/test/test_funktionen.c

@ -178,4 +178,10 @@ void test_degreesToRadians(void) {
TEST_ASSERT_EQUAL_FLOAT(1.570796, result);
// Add more test cases for different inputs and expected outputs
}
void test_radiansToDegrees(void) {
float result = radiansToDegrees(1.570796);
TEST_ASSERT_EQUAL_FLOAT(90.0, result);
// Add more test cases for different inputs and expected outputs
}
#endif
Loading…
Cancel
Save