Browse Source

Unittest: CzuK

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

1
src/temperatur.h

@ -2,5 +2,6 @@
#define TEMPERATUR_H
float CzuF(float tempC);
float CzuK(float tempC);
#endif //TEMPERATUR_H

7
test/test_temperatur.c

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