#ifdef TEST #include "unity.h" #include "calculatorCube.c" void setUp(void) { } void tearDown(void) { } void test1_calculatorCube(void) { float p, a, e; p = 5; a = calculatorCube(p); e = p * p * p; TEST_ASSERT_EQUAL_FLOAT(e, a); } void test2_calculatorCube(void) { float p, a, e; p = 6; a = calculatorCube(p); e = p * p * p; TEST_ASSERT_EQUAL_FLOAT(e, a); } #endif // TEST