From 84c93bae198464a87a2c05c9f2f7f0323e2b28c4 Mon Sep 17 00:00:00 2001 From: Kevin Ludwig Date: Fri, 9 Feb 2024 19:11:42 +0100 Subject: [PATCH] Unittest: CzuF negativ --- test/test_temperatur.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_temperatur.c b/test/test_temperatur.c index 04485a8..7f8eeb3 100644 --- a/test/test_temperatur.c +++ b/test/test_temperatur.c @@ -18,6 +18,12 @@ float result = CzuF(25); float expected = 77; TEST_ASSERT_EQUAL(expected, result); } +void test_temperaturRechner_CzuFnegativ(void) +{ +float result = CzuF(-5); +float expected = 23; +TEST_ASSERT_EQUAL(expected, result); +} void test_temperaturRechner_CzuK(void) {