From 320e7fd6f41e636cecec2d537e4e31b59d03e048 Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Tue, 30 Jan 2024 18:45:15 +0100 Subject: [PATCH] testing: addition base case 0+0=0 --- test/test_addition.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/test_addition.c b/test/test_addition.c index 9596038..8af2427 100644 --- a/test/test_addition.c +++ b/test/test_addition.c @@ -75,4 +75,14 @@ void test_addition_full_adder_completesumwithcarry(void) TEST_ASSERT_EQUAL_INT(expectedcarry[4], carryresult[4]); } +void test_addition_addition_basecasezeropluszeroequalzero(void) +{ + int result; + int expected = 0; + + result = addition(0, 0); + + TEST_ASSERT_EQUAL_INT(expected, result); +} + #endif // TEST