diff --git a/src/temperatur.c b/src/temperatur.c index 33b5e1d..1fbeaf0 100644 --- a/src/temperatur.c +++ b/src/temperatur.c @@ -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; diff --git a/src/temperatur.h b/src/temperatur.h index 226e114..1409e5d 100644 --- a/src/temperatur.h +++ b/src/temperatur.h @@ -3,6 +3,8 @@ float CzuF(float tempC); float CzuK(float tempC); + float FzuC(float tempF); +float FzuK(float tempF); #endif //TEMPERATUR_H diff --git a/test/test_temperatur.c b/test/test_temperatur.c index 9751fc2..f237aaf 100644 --- a/test/test_temperatur.c +++ b/test/test_temperatur.c @@ -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; +TEST_ASSERT_EQUAL(expected, result); +} #endif