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

Function test_hasLost

tests/test_checkers.py:111–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected