From 721c04c3b4bd231f125c31d929f19f41d4414acf Mon Sep 17 00:00:00 2001 From: Dennis Sperzel Date: Tue, 30 Jan 2024 19:05:00 +0100 Subject: [PATCH] testing: addition base case onecolumns --- test/test_addition.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/test_addition.c b/test/test_addition.c index 8af2427..02db089 100644 --- a/test/test_addition.c +++ b/test/test_addition.c @@ -85,4 +85,16 @@ void test_addition_addition_basecasezeropluszeroequalzero(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_addition_addition_basecaseonescolumns(void) +{ + int result[2]; + int expected[2] = { 1, 1 }; + + result[0] = addition(1, 0); + result[1] = addition(0, 1); + + TEST_ASSERT_EQUAL_INT(expected[0], result[0]); + TEST_ASSERT_EQUAL_INT(expected[1], result[1]); +} + #endif // TEST