def test_speller_bad_word(self): result = get_correct_spelling("xxxdddd") self.assertEqual(result, "xxxdddd")
def test_speller_insert_letter(self): result = get_correct_spelling("cigarrette") self.assertEqual(result, "cigarette")
def test_speller_short_common_word(self): result = get_correct_spelling("teh") self.assertEqual(result, "the")
def test_speller_long_common_word(self): result = get_correct_spelling("cigarete") self.assertEqual(result, "cigarette")
def test_speller_good_word(self): result = get_correct_spelling("speling") self.assertEqual(result, "spelling")