MCPcopy
hub / github.com/austingebauer/go-leetcode / TestTicTacToeXWinsRow

Function TestTicTacToeXWinsRow

design_tic_tac_toe_348/solution_test.go:8–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

6)
7
8func 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
19func TestTicTacToeXWinsCol(t *testing.T) {
20 toe := Constructor(3)

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.80
ConstructorFunction · 0.70

Tested by

no test coverage detected