Browse Source

addition full adder base case 0+0=0

master
Dennis Sperzel 11 months ago
parent
commit
9c9ca9a1f1
  1. 6
      src/addition.c
  2. 6
      src/addition.h
  3. 20
      test/test_addition.c

6
src/addition.c

@ -0,0 +1,6 @@
#include "addition.h"
#include <stdlib.h>
void volladdierer (int* s, int* nc, int a, int b, int c) {
s[0] = 0;
}

6
src/addition.h

@ -0,0 +1,6 @@
#ifndef ADDITION_H
#define ADDITION_H
void volladdierer (int* s, int* nc, int a, int b, int c);
#endif // ADDITION_H

20
test/test_addition.c

@ -0,0 +1,20 @@
#ifdef TEST
#include "unity.h"
#include "addition.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_addition_NeedToImplement(void)
{
TEST_IGNORE_MESSAGE("Need to Implement addition");
}
#endif // TEST
Loading…
Cancel
Save