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

Function TestTicTacToeOWinsRow

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

Source from the content-addressed store, hash-verified

26}
27
28func TestTicTacToeOWinsRow(t *testing.T) {
29 toe := Constructor(3)
30 assert.Equal(t, 0, toe.Move(0, 0, 1))
31 assert.Equal(t, 0, toe.Move(1, 0, 2))
32 assert.Equal(t, 0, toe.Move(0, 2, 1))
33 assert.Equal(t, 0, toe.Move(1, 1, 2))
34 assert.Equal(t, 0, toe.Move(2, 2, 1))
35 assert.Equal(t, 2, toe.Move(1, 2, 2))
36}
37
38func TestTicTacToeOWinsCol(t *testing.T) {
39 toe := Constructor(3)

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.80
ConstructorFunction · 0.70

Tested by

no test coverage detected