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

Function TestTicTacToeNoWins

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

Source from the content-addressed store, hash-verified

46}
47
48func 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
61func TestTicTacToeForwardDiagonalWin(t *testing.T) {
62 toe := Constructor(3)

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.80
ConstructorFunction · 0.70

Tested by

no test coverage detected