You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2007/10/25 01:04:57 UTC

svn commit: r588074 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java

Author: ggregory
Date: Wed Oct 24 16:04:56 2007
New Revision: 588074

URL: http://svn.apache.org/viewvc?rev=588074&view=rev
Log:
[#CODEC-57] Metaphone.metaphone(String) returns an empty string when passed the word "why".

Modified:
    commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java

Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java?rev=588074&r1=588073&r2=588074&view=diff
==============================================================================
--- commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java (original)
+++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java Wed Oct 24 16:04:56 2007
@@ -402,9 +402,16 @@
 		assertEquals( "S", this.getMetaphone().metaphone("SCY") );
 	}
 
-	public void testWordsWithCIA() {
-		assertEquals( "XP", this.getMetaphone().metaphone("CIAPO") );
-	}
+    /**
+     * Tests (CODEC-57) Metaphone.metaphone(String) returns an empty string when passed the word "why"
+     */
+    public void testWhy() {
+        assertEquals("H", this.getMetaphone().metaphone("WHY"));
+    }
+
+    public void testWordsWithCIA() {
+        assertEquals( "XP", this.getMetaphone().metaphone("CIAPO") );
+    }
 
 	public void testTranslateOfSCHAndCH() {
 		assertEquals( "SKTL", this.getMetaphone().metaphone("SCHEDULE") );