|
@ -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 |