MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / test_isFull

Function test_isFull

tests/test_fourinarow.py:48–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 assert fourinarow.isWinner('X', b)
47
48def test_isFull():
49 b = fourinarow.getNewBoard()
50 for x in range(fourinarow.BOARD_WIDTH):
51 for y in range(fourinarow.BOARD_HEIGHT):
52 b[(x, y)] = 'X'
53
54 fourinarow.displayBoard(b)
55 assert fourinarow.isFull(b)
56
57 for x in range(fourinarow.BOARD_WIDTH):
58 for y in range(fourinarow.BOARD_HEIGHT):
59 b[(x, y)] = fourinarow.EMPTY_SPACE
60 assert not fourinarow.isFull(b)
61 b[(x, y)] = 'X'
62
63
64def test_getNewBoard():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected