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

Function TestTicTacToeOWinsCol

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

Source from the content-addressed store, hash-verified

36}
37
38func TestTicTacToeOWinsCol(t *testing.T) {
39 toe := Constructor(3)
40 assert.Equal(t, 0, toe.Move(0, 0, 1))
41 assert.Equal(t, 0, toe.Move(0, 2, 2))
42 assert.Equal(t, 0, toe.Move(0, 1, 1))
43 assert.Equal(t, 0, toe.Move(1, 2, 2))
44 assert.Equal(t, 0, toe.Move(1, 0, 1))
45 assert.Equal(t, 2, toe.Move(2, 2, 2))
46}
47
48func TestTicTacToeNoWins(t *testing.T) {
49 toe := Constructor(3)

Callers

nothing calls this directly

Calls 2

MoveMethod · 0.80
ConstructorFunction · 0.70

Tested by

no test coverage detected