|
@ -136,6 +136,22 @@ void test_TicTacToe_Winner_O_diagonal_2(void) |
|
|
/* act */ |
|
|
/* act */ |
|
|
actual = Winner(board); |
|
|
actual = Winner(board); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
|
|
|
} |
|
|
|
|
|
void test_TicTacToe_mid_Round(void) |
|
|
|
|
|
{ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
int expected = 9; |
|
|
|
|
|
int actual; |
|
|
|
|
|
char board[3][3] = { |
|
|
|
|
|
{'X', 'X', 'O'}, |
|
|
|
|
|
{'_', 'O', 'X'}, |
|
|
|
|
|
{'_', '_', 'O'} |
|
|
|
|
|
}; |
|
|
|
|
|
/* act */ |
|
|
|
|
|
actual = Winner(board); |
|
|
|
|
|
|
|
|
/* assert */ |
|
|
/* assert */ |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
TEST_ASSERT_EQUAL_INT(expected, actual); |
|
|
} |
|
|
} |