@ -15,7 +15,7 @@ float FzuK(float tempF){
return (tempF - 32) * 5/9 + 273.15;
}
int main(){
int run_TemperaturRechner(){
float var1, var2;
int var3;
@ -3,6 +3,8 @@
float CzuF(float tempC);
float CzuK(float tempC);
float FzuC(float tempF);
float FzuK(float tempF);
#endif //TEMPERATUR_H
@ -33,4 +33,10 @@ float result = FzuC(77);
float expected = 25;
TEST_ASSERT_EQUAL(expected, result);
void test_temperaturRechner_FzuK(void)
{
float result = FzuK(77);
float expected = 298.15;
#endif