示例#1
0
 def assert_suggestions(self, w, candidates, expected):
     suggestions = spellcheck.suggest(w, candidates)
     self.assertEqual(suggestions, expected)
示例#2
0
 def assert_suggestions(self, w, candidates, expected):
     suggestions = spellcheck.suggest(w, candidates)
     self.assertEqual(suggestions, expected)
示例#3
0
 def assert_best_suggestion(self, w, expected):
     suggestions = spellcheck.suggest(w, self.HOOKS)
     self.assertEqual(suggestions[0], expected)
示例#4
0
 def assert_best_suggestion(self, w, expected):
     suggestions = spellcheck.suggest(w, self.HOOKS)
     self.assertEqual(suggestions[0], expected)