No point making a list to convert to a set
This commit is contained in:
@@ -145,7 +145,7 @@ def testCoreSpell_Simple(monkeypatch, tmpDir, tmpConf):
|
|||||||
# Load dictionary properly
|
# Load dictionary properly
|
||||||
spChk.setLanguage("en", wList)
|
spChk.setLanguage("en", wList)
|
||||||
assert spChk.projDict == ["a_word", "b_word", "c_word"]
|
assert spChk.projDict == ["a_word", "b_word", "c_word"]
|
||||||
assert spChk.theWords == set(["e_word", "f_word", "g_word", "a_word", "b_word", "c_word"])
|
assert spChk.theWords == {"e_word", "f_word", "g_word", "a_word", "b_word", "c_word"}
|
||||||
|
|
||||||
# Check words
|
# Check words
|
||||||
assert spChk.checkWord("a_word")
|
assert spChk.checkWord("a_word")
|
||||||
|
|||||||
Reference in New Issue
Block a user