You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
370 B
29 lines
370 B
#ifdef TEST
|
|
|
|
#include "unity.h"
|
|
|
|
#include "temperatur.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void test_temperaturRechner_CzuF(void)
|
|
{
|
|
float result = CzuF(25);
|
|
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
|