Exemple #1
0
 def test_speller_bad_word(self):
     result = get_correct_spelling("xxxdddd")
     self.assertEqual(result, "xxxdddd")
Exemple #2
0
 def test_speller_insert_letter(self):
     result = get_correct_spelling("cigarrette")
     self.assertEqual(result, "cigarette")
Exemple #3
0
 def test_speller_short_common_word(self):
     result = get_correct_spelling("teh")
     self.assertEqual(result, "the")
Exemple #4
0
 def test_speller_long_common_word(self):
     result = get_correct_spelling("cigarete")
     self.assertEqual(result, "cigarette")
Exemple #5
0
 def test_speller_good_word(self):
     result = get_correct_spelling("speling")
     self.assertEqual(result, "spelling")