|
|
@ -8,7 +8,7 @@ void setUp(void) { |
|
|
|
} |
|
|
|
|
|
|
|
void tearDown(void) { |
|
|
|
// Clean up resources here if needed |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
void test_convert_temperature(void) { |
|
|
@ -16,10 +16,10 @@ void test_convert_temperature(void) { |
|
|
|
char from_unit = 'c'; |
|
|
|
char to_unit = 'f'; |
|
|
|
|
|
|
|
// Perform the conversion |
|
|
|
|
|
|
|
float result = convert_temperature(temperature, from_unit, to_unit); |
|
|
|
|
|
|
|
// Define the expected result (100 degrees Celsius to Fahrenheit is 212) |
|
|
|
|
|
|
|
float expectedResult = 212; |
|
|
|
|
|
|
|
// Assert the result |
|
|
|