Example #1
0
 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")
Example #2
0
 def test_soundex(self):
     self.assertEqual(soundex_convert("jurafsky"), "j612")
Example #3
0
	def test_soundex(self):
		self.assertEqual(soundex_convert("jurafsky"), "j612")
Example #4
0
 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")