commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r588074 - /commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/MetaphoneTest.java
Date Wed, 24 Oct 2007 23:04:57 GMT
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") );



Mime
View raw message