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

Function test_constants

tests/test_towerofhanoi.py:8–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6from gamesbyexample import towerofhanoi
7
8def test_constants():
9 assert towerofhanoi.TOTAL_DISKS == 5
10 assert towerofhanoi.COMPLETE_TOWER == [5, 4, 3, 2, 1]
11
12def test_getPlayerMove(capsys):
13 towers = {'A': copy.copy(towerofhanoi.COMPLETE_TOWER), 'B': [], 'C': []}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected