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