|
@ -31,6 +31,15 @@ void test_division_2(void) |
|
|
TEST_ASSERT_EQUAL_DOUBLE(expected, result); |
|
|
TEST_ASSERT_EQUAL_DOUBLE(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_bitshiftdruch0(void) |
|
|
|
|
|
{ |
|
|
|
|
|
int result, expected = 16; |
|
|
|
|
|
|
|
|
|
|
|
result = divisionByTwo(16,0); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void test_division_3(void) |
|
|
void test_division_3(void) |
|
|
{ |
|
|
{ |
|
|
int result, expected = 4; |
|
|
int result, expected = 4; |
|
|