FileDocCategorySizeDatePackage
SoundexTest.javaAPI DocExample1042Sun Feb 22 09:31:22 GMT 2004None

SoundexTest

public class SoundexTest extends TestCase
Soundex Test program. Knuth's original examples, and mine.

Fields Summary
Constructors Summary
public SoundexTest(String name)
JUnit test classes require this constructor

		super(name);
	
Methods Summary
public voidtestDarwin1()

		assertEquals("D650", Soundex.soundex("Darwin"));
	
public voidtestDarwin2()

		assertEquals("D653", Soundex.soundex("Darwent"));
	
public voidtestDarwin3()

		assertEquals("D650", Soundex.soundex("Derwin"));
	
public voidtestKnuth0()

		assertEquals("E460", Soundex.soundex("Euler, Ellery"));
	
public voidtestKnuth1()

		assertEquals("G200", Soundex.soundex("Gauss, Ghosh"));
	
public voidtestKnuth2()

		assertEquals("H416", Soundex.soundex("Hilbert, Heilbronn"));
	
public voidtestKnuth3()

		assertEquals("K530", Soundex.soundex("Knuth, Kant"));
	
public voidtestKnuth4()

		assertEquals("L300", Soundex.soundex("Lloyd, Ladd"));
	
public voidtestKnuth5()

		assertEquals("L222",
			Soundex.soundex("Lukasiewicz, Lissajous"));