Skip to content

Commit fc9ab83

Browse files
committed
add doctest to Added doctest for main() in Hangman game
1 parent 2a26772 commit fc9ab83

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

other/password.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ def main() -> None:
126126
127127
The player has up to 6 incorrect guesses to complete the word.
128128
The game ends when the player wins or loses.
129+
130+
>>> isinstance(main(), type(None))
131+
True
129132
"""
130133
answer: str = random.choice(words)
131134
hint: list[str] = ["_"] * len(answer)

0 commit comments

Comments
 (0)