コード例 #1
0
ファイル: test_spellcheck.py プロジェクト: Muneop/test0504
 def assert_suggestions(self, w, candidates, expected):
     suggestions = spellcheck.suggest(w, candidates)
     self.assertEqual(suggestions, expected)
コード例 #2
0
ファイル: test_spellcheck.py プロジェクト: dirkakrid/pgzero
 def assert_suggestions(self, w, candidates, expected):
     suggestions = spellcheck.suggest(w, candidates)
     self.assertEqual(suggestions, expected)
コード例 #3
0
ファイル: test_spellcheck.py プロジェクト: Muneop/test0504
 def assert_best_suggestion(self, w, expected):
     suggestions = spellcheck.suggest(w, self.HOOKS)
     self.assertEqual(suggestions[0], expected)
コード例 #4
0
ファイル: test_spellcheck.py プロジェクト: dirkakrid/pgzero
 def assert_best_suggestion(self, w, expected):
     suggestions = spellcheck.suggest(w, self.HOOKS)
     self.assertEqual(suggestions[0], expected)