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