Skip to content

Commit 1f21520

Browse files
committed
Update the Wordle example test
1 parent f4eed20 commit 1f21520

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/wordle_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def test_wordle(self):
6464
found_word = False
6565
for attempt in range(6):
6666
num_attempts += 1
67+
if len(self.word_list) == 0:
68+
self.fail("Today's word was not found in my dictionary!")
6769
word = random.choice(self.word_list)
6870
letters = []
6971
for letter in word:

0 commit comments

Comments
 (0)