#ifdef TEST #include "unity.h" #include "minirechner.h" void setUp(void) { } void tearDown(void) { } // test addition void test_minitaschenrechner_3_plus_4(void) { float result = addieren(3, 4); TEST_ASSERT_EQUAL(7, result); } void test_minitaschenrechner_float_plus_float(void) { float result = addieren(3.1, 4.2); TEST_ASSERT_EQUAL(7.3, result); } #endif // TEST