Browse Source

degreesToRadians test

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

6
src/test/test_funktionen.c

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