From 9bb254442eaa742740ae803a9afa938cdac428a9 Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Mon, 29 Jan 2024 17:37:03 +0100 Subject: [PATCH] testing: addition full adder base case 0+0=0 --- test/test_addition.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/test_addition.c b/test/test_addition.c index 1d9823c..e18db0c 100644 --- a/test/test_addition.c +++ b/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