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