We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b30dd19 + c1a9c5c commit 3b25d0fCopy full SHA for 3b25d0f
tests/hangman/hangmanTest.py
@@ -161,9 +161,9 @@ def testIsRunningNoGuesses():
161
"""is_running() returns False after running out of guesses"""
162
run(
163
'game = Hangman("abc", 2)',
164
- 'assert game.guess("a")',
+ 'assert not game.guess("d")',
165
'assert game.is_running()',
166
- 'assert game.guess("b")',
+ 'assert not game.guess("e")',
167
'assert not game.is_running()'
168
)
169
@@ -207,4 +207,4 @@ def fixLine(line: str) -> str:
207
'>>> from hangman import *\n'
208
209
210
- raise AssertionError(pre + "\n".join(fixedLines))
+ raise AssertionError(pre + "\n".join(fixedLines))
0 commit comments