From ae207c82298f025e3793d90f41a0c87124d3d53e Mon Sep 17 00:00:00 2001 From: Kevin Ludwig Date: Wed, 7 Feb 2024 21:21:07 +0100 Subject: [PATCH] Unittest: KzuF --- src/temperatur.h | 1 + test/test_temperatur.c | 7 +++++++ 2 files changed, 8 insertions(+) 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