|
@ -178,4 +178,10 @@ void test_degreesToRadians(void) { |
|
|
TEST_ASSERT_EQUAL_FLOAT(1.570796, result); |
|
|
TEST_ASSERT_EQUAL_FLOAT(1.570796, result); |
|
|
// Add more test cases for different inputs and expected outputs |
|
|
// 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 |
|
|
#endif |