Skip to content

Commit 3b25d0f

Browse files
committed
Merge branch 'main' of github.com:minprog/python
2 parents b30dd19 + c1a9c5c commit 3b25d0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/hangman/hangmanTest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ def testIsRunningNoGuesses():
161161
"""is_running() returns False after running out of guesses"""
162162
run(
163163
'game = Hangman("abc", 2)',
164-
'assert game.guess("a")',
164+
'assert not game.guess("d")',
165165
'assert game.is_running()',
166-
'assert game.guess("b")',
166+
'assert not game.guess("e")',
167167
'assert not game.is_running()'
168168
)
169169

@@ -207,4 +207,4 @@ def fixLine(line: str) -> str:
207207
'>>> from hangman import *\n'
208208
)
209209

210-
raise AssertionError(pre + "\n".join(fixedLines))
210+
raise AssertionError(pre + "\n".join(fixedLines))

0 commit comments

Comments
 (0)