|
|
@ -24,4 +24,18 @@ void test_ticTacToe_validUserInput(void) |
|
|
|
TEST_ASSERT_EQUAL_INT(true, result); |
|
|
|
} |
|
|
|
|
|
|
|
void test_ticTacToe_invalidUserInput(void) |
|
|
|
{ |
|
|
|
/* arrange */ |
|
|
|
bool result; |
|
|
|
int row = 1, col = 3; |
|
|
|
|
|
|
|
/* act */ |
|
|
|
result = validateUserInput(row, col); |
|
|
|
|
|
|
|
/* assert */ |
|
|
|
TEST_ASSERT_EQUAL_INT(false, result); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endif // TEST |