(t *testing.T)
| 46 | } |
| 47 | |
| 48 | func TestTicTacToeNoWins(t *testing.T) { |
| 49 | toe := Constructor(3) |
| 50 | assert.Equal(t, 0, toe.Move(0, 0, 1)) |
| 51 | assert.Equal(t, 0, toe.Move(0, 1, 2)) |
| 52 | assert.Equal(t, 0, toe.Move(0, 2, 1)) |
| 53 | assert.Equal(t, 0, toe.Move(1, 2, 2)) |
| 54 | assert.Equal(t, 0, toe.Move(2, 1, 1)) |
| 55 | assert.Equal(t, 0, toe.Move(2, 2, 2)) |
| 56 | assert.Equal(t, 0, toe.Move(1, 1, 1)) |
| 57 | assert.Equal(t, 0, toe.Move(2, 0, 2)) |
| 58 | assert.Equal(t, 0, toe.Move(1, 0, 1)) |
| 59 | } |
| 60 | |
| 61 | func TestTicTacToeForwardDiagonalWin(t *testing.T) { |
| 62 | toe := Constructor(3) |
nothing calls this directly
no test coverage detected