|
|
@ -14,22 +14,22 @@ void tearDown(void) |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
void test_addition_volladdierer_nullplusnullgleichnull(void) |
|
|
|
void test_addition_full_adder_nullplusnullgleichnull(void) |
|
|
|
{ |
|
|
|
int result[1]; |
|
|
|
int expected = 0; |
|
|
|
|
|
|
|
volladdierer(result, nullcarry, 0, 0, 0); |
|
|
|
full_adder(result, nullcarry, 0, 0, 0); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result[0]); |
|
|
|
} |
|
|
|
|
|
|
|
void test_addition_volladdierer_nullplusnullgleichnullmituebertrag(void) |
|
|
|
void test_addition_full_adder_nullplusnullgleichnullmituebertrag(void) |
|
|
|
{ |
|
|
|
int result[1]; |
|
|
|
int expected = 1; |
|
|
|
|
|
|
|
volladdierer(result, nullcarry, 0, 0, 1); |
|
|
|
full_adder(result, nullcarry, 0, 0, 1); |
|
|
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, result[0]); |
|
|
|
} |
|
|
|