Browse Source

testing: addition full adder base case 0+0=0

master
Dennis Sperzel 12 months ago
parent
commit
9bb254442e
  1. 11
      test/test_addition.c

11
test/test_addition.c

@ -4,6 +4,8 @@
#include "addition.h"
int* nullcarry = NULL;
void setUp(void)
{
}
@ -12,9 +14,14 @@ void tearDown(void)
{
}
void test_addition_NeedToImplement(void)
void test_addition_volladdierer_nullplusnullgleichnull(void)
{
TEST_IGNORE_MESSAGE("Need to Implement addition");
int result[1];
int expected = 0;
volladdierer(result, nullcarry, 0, 0, 0);
TEST_ASSERT_EQUAL_INT(expected, result[0]);
}
#endif // TEST
Loading…
Cancel
Save