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