|
|
@ -14,28 +14,28 @@ void tearDown(void) |
|
|
|
|
|
|
|
void test_addition(void) |
|
|
|
{ |
|
|
|
doulbe result = add(1, 2); |
|
|
|
double result = add(1, 2); |
|
|
|
TEST_ASSERT_EQUAL(3, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_minus(void) |
|
|
|
{ |
|
|
|
doulbe result = minus(3, 1); |
|
|
|
double result = minus(3, 1); |
|
|
|
TEST_ASSERT_EQUAL(2, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_multiply(void) |
|
|
|
{ |
|
|
|
doulbe result = multiply(1, 2); |
|
|
|
double result = multiply(1, 2); |
|
|
|
TEST_ASSERT_EQUAL(2, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_divide(void) |
|
|
|
{ |
|
|
|
doulbe result = divide(4, 2); |
|
|
|
double result = divide(4, 2); |
|
|
|
TEST_ASSERT_EQUAL(2, result); |
|
|
|
|
|
|
|
doulbe result1 = divide(4, 0); |
|
|
|
double result1 = divide(4, 0); |
|
|
|
TEST_ASSERT_EQUAL(0, result1); |
|
|
|
} |
|
|
|
|
|
|
|