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