Browse Source

Unittest: KzuC

remotes/origin/temperaturdev
Kevin Ludwig 11 months ago
parent
commit
df1ed97ad1
  1. 1
      src/temperatur.h
  2. 7
      test/test_temperatur.c

1
src/temperatur.h

@ -3,5 +3,6 @@
float CzuF(float tempC); float CzuF(float tempC);
float CzuK(float tempC); float CzuK(float tempC);
float FzuC(float tempF);
#endif //TEMPERATUR_H #endif //TEMPERATUR_H

7
test/test_temperatur.c

@ -26,4 +26,11 @@ float expected = 298.15;
TEST_ASSERT_EQUAL(expected, result); TEST_ASSERT_EQUAL(expected, result);
} }
void test_temperaturRechner_FzuC(void)
{
float result = FzuC(77);
float expected = 25;
TEST_ASSERT_EQUAL(expected, result);
}
#endif #endif
Loading…
Cancel
Save