commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1157946 - /commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
Date Mon, 15 Aug 2011 18:54:20 GMT
Author: sebb
Date: Mon Aug 15 18:54:20 2011
New Revision: 1157946

URL: http://svn.apache.org/viewvc?rev=1157946&view=rev
Log:
Test is useless unless it actually checks the result!
[No wonder the corrupted chars were not found - now fixed]
See CODEC-127

Modified:
    commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java

Modified: commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
URL: http://svn.apache.org/viewvc/commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java?rev=1157946&r1=1157945&r2=1157946&view=diff
==============================================================================
--- commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
(original)
+++ commons/proper/codec/branches/generics/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java
Mon Aug 15 18:54:20 2011
@@ -1219,12 +1219,12 @@ public class DoubleMetaphoneTest extends
 
     @Test
     public void testCCedilla() {
-        this.getDoubleMetaphone().isDoubleMetaphoneEqual("�", "S");
+        assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00e7", "S")); // c-cedilla
     }
     
     @Test
     public void testNTilde() {
-        this.getDoubleMetaphone().isDoubleMetaphoneEqual("�", "N");
+        assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00f1", "N")); // n-tilde
     }
     
     public void validateFixture(String[][] pairs) {



Mime
View raw message