Create minimal test for dictionary before HDF5 rewrite.
This commit is contained in:
1 parent
36c26dcf9f
commit
f5d8347134
2 files changed
+17
-4
No files matched your search
+3
-4
@@ -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:
|
||||
|
||||
@@ -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()
|
||||
Reference in new issue
Block a user