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.
 
 
 
 

35 lines
422 B

#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