def test_soundex(self): self.assertEqual(soundex_convert("jurafsky"), "j612") self.assertEqual(soundex_convert("Lukaschowsky"), "L222") self.assertEqual(soundex_convert("Roses"), "R220") self.assertEqual(soundex_convert("Tomzak"), "T522") self.assertEqual(soundex_convert("Pfister"), "P236") self.assertEqual(soundex_convert("Lloyd"), "L300") self.assertEqual(soundex_convert("Ashcroft"), "A226")
def test_soundex(self): self.assertEqual(soundex_convert("jurafsky"), "j612")
def test_soundex(self): self.assertEqual(soundex_convert("jurafsky"), "j612") self.assertEqual(soundex_convert("Alice"), "A420") self.assertEqual(soundex_convert("josh"), "j200") self.assertEqual(soundex_convert("svenyan"), "s155")