#ifdef TEST #include "unity.h" #include "calculatorSquare.c" void setUp(void) { } void tearDown(void) { } void test1_calculatorMultiply(void) { float p, a, e; p = 26.24; a = calculatorSquare(p); e = p * p; TEST_ASSERT_EQUAL_FLOAT(e, a); } void test2_calculatorMultiply(void) { float p, a, e; p = 5; a = calculatorSquare(p); e = p * p; TEST_ASSERT_EQUAL_FLOAT(e, a); } #endif // TEST