You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

37 lines
552 B

#ifdef TEST
#include "unity.h"
#include "addition.h"
int* nullcarry = NULL;
void setUp(void)
{
}
void tearDown(void)
{
}
void test_addition_full_adder_nullplusnullgleichnull(void)
{
int result[1];
int expected = 0;
full_adder(result, nullcarry, 0, 0, 0);
TEST_ASSERT_EQUAL_INT(expected, result[0]);
}
void test_addition_full_adder_nullplusnullgleichnullmituebertrag(void)
{
int result[1];
int expected = 1;
full_adder(result, nullcarry, 0, 0, 1);
TEST_ASSERT_EQUAL_INT(expected, result[0]);
}
#endif // TEST