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

Function test_hasLost

tests/test_chancecheckers.py:110–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108
109
110def test_hasLost():
111 board = chancecheckers.getNewBoard()
112 for space, checker in board.items():
113 if checker in ('x', 'X'):
114 board[space] = chancecheckers.EMPTY
115
116 assert chancecheckers.hasLost(board, 'X') == True
117 assert chancecheckers.hasLost(board, 'O') == False
118
119

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected