#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);
}


void test_temperaturRechner_FzuC(void)
{
float result = FzuC(77);
float expected = 25;
TEST_ASSERT_EQUAL(expected, result);
}
void test_temperaturRechner_FzuK(void)
{
float result = FzuK(77);
float expected = 298.15;
TEST_ASSERT_EQUAL(expected, result);
}

void test_temperaturRechner_KzuC(void)
{
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);
}

void test_returnUnit_first(void)
{
const char *result = getFirstUnit(1);
char expected[] = "Celsius";
TEST_ASSERT_EQUAL_STRING(expected, result);
}
void test_returnUnit_second(void)
{
const char *result = getSecondUnit(2);
char expected[] = " Kelvin";
TEST_ASSERT_EQUAL_STRING(expected, result);
}
#endif