Create minimal test for dictionary before HDF5 rewrite.

This commit is contained in:
dongar committed 2023-05-23 13:31:56 -05:00
1 parent 36c26dcf9f
commit f5d8347134
2 files changed
+17 -4

No files matched your search

+3 -4
View File
@@ -1,12 +1,8 @@
#!/usr/bin/python
WORDLE_LENGTH = 5
_wordle_dictionary = set()
_invalid_words = set(
[
"amala",
@@ -67,6 +63,9 @@ _invalid_words = set(
)
_wordle_dictionary = set()
def words():
if not _wordle_dictionary:
with open("words_alpha.txt") as word_file:
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/python
import unittest
import dictionary
class TestDictionary(unittest.TestCase):
def test_empty(self):
words = dictionary.words()
if __name__ == "__main__":
unittest.main()