(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestTicTacToeXWinsRow(t *testing.T) { |
| 9 | toe := Constructor(3) |
| 10 | assert.Equal(t, 0, toe.Move(0, 0, 1)) |
| 11 | assert.Equal(t, 0, toe.Move(0, 2, 2)) |
| 12 | assert.Equal(t, 0, toe.Move(2, 2, 1)) |
| 13 | assert.Equal(t, 0, toe.Move(1, 1, 2)) |
| 14 | assert.Equal(t, 0, toe.Move(2, 0, 1)) |
| 15 | assert.Equal(t, 0, toe.Move(1, 0, 2)) |
| 16 | assert.Equal(t, 1, toe.Move(2, 1, 1)) |
| 17 | } |
| 18 | |
| 19 | func TestTicTacToeXWinsCol(t *testing.T) { |
| 20 | toe := Constructor(3) |
nothing calls this directly
no test coverage detected