diff --git a/src/temperatur.h b/src/temperatur.h index ebdea50..d4f13bf 100644 --- a/src/temperatur.h +++ b/src/temperatur.h @@ -8,5 +8,6 @@ float FzuC(float tempF); float FzuK(float tempF); float KzuC(float tempK); +float KzuF(float tempK); #endif //TEMPERATUR_H diff --git a/test/test_temperatur.c b/test/test_temperatur.c index e27c7da..e22c8e1 100644 --- a/test/test_temperatur.c +++ b/test/test_temperatur.c @@ -46,4 +46,11 @@ float result = KzuC(298.15); float expected = 25; TEST_ASSERT_EQUAL(expected, result); } +void test_temperaturRechner_KzuF(void) +{ +float result = KzuF(298.15); +float expected = 77; +TEST_ASSERT_EQUAL(expected, result); +} + #endif