コード例 #1
0
ファイル: test_wsmatrix.py プロジェクト: samtaufa/wordsearch
 def test_sanitize_words(self):
     wordlist = ["word", "is", "his", "short"]
     expect = ["short", "word", "his"]
     reject = []
     test = WStext(wordlist, maxlength = 11)
     good, bad = test.sanitize_words(wordlist, maxlength = 11)
     assert good == expect
     assert bad == ["is"]
コード例 #2
0
 def test_sanitize_words(self):
     wordlist = ["word", "is", "his", "short"]
     expect = ["short", "word", "his"]
     reject = []
     test = WStext(wordlist, maxlength=11)
     good, bad = test.sanitize_words(wordlist, maxlength=11)
     assert good == expect
     assert bad == ["is"]