Browse Source

testing: addition base case onecolumns

master
Dennis Sperzel 11 months ago
parent
commit
721c04c3b4
  1. 12
      test/test_addition.c

12
test/test_addition.c

@ -85,4 +85,16 @@ void test_addition_addition_basecasezeropluszeroequalzero(void)
TEST_ASSERT_EQUAL_INT(expected, result); 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 #endif // TEST
Loading…
Cancel
Save