|
@ -22,6 +22,15 @@ void test_division_1(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_division_1_durch_0(void) |
|
|
|
|
|
{ |
|
|
|
|
|
int result, expected = 0; |
|
|
|
|
|
|
|
|
|
|
|
result = divisionInt(10,0); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_division_2(void) |
|
|
void test_division_2(void) |
|
|
{ |
|
|
{ |
|
|
double result, expected = 5.0; |
|
|
double result, expected = 5.0; |
|
|