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

Function TestTicTacToeXWinsCol

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

Source from the content-addressed store, hash-verified

17}
18
19func TestTicTacToeXWinsCol(t *testing.T) {
20 toe := Constructor(3)
21 assert.Equal(t, 0, toe.Move(0, 0, 1))
22 assert.Equal(t, 0, toe.Move(0, 2, 2))
23 assert.Equal(t, 0, toe.Move(1, 0, 1))
24 assert.Equal(t, 0, toe.Move(1, 2, 2))
25 assert.Equal(t, 1, toe.Move(2, 0, 1))
26}
27
28func TestTicTacToeOWinsRow(t *testing.T) {
29 toe := Constructor(3)

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.80
ConstructorFunction · 0.70

Tested by

no test coverage detected