|
@ -24,4 +24,14 @@ void test_addition_volladdierer_nullplusnullgleichnull(void) |
|
|
TEST_ASSERT_EQUAL_INT(expected, result[0]); |
|
|
TEST_ASSERT_EQUAL_INT(expected, result[0]); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_addition_volladdierer_nullplusnullgleichnullmituebertrag(void) |
|
|
|
|
|
{ |
|
|
|
|
|
int result[1]; |
|
|
|
|
|
int expected = 1; |
|
|
|
|
|
|
|
|
|
|
|
volladdierer(result, nullcarry, 0, 0, 1); |
|
|
|
|
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result[0]); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |