Author: sebb Date: Mon Aug 15 18:51:17 2011 New Revision: 1157945 URL: http://svn.apache.org/viewvc?rev=1157945&view=rev Log: Test is useless unless it actually checks the result! [No wonder the corrupted chars were not found] See CODEC-127
Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java Modified: commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java URL: http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java?rev=1157945&r1=1157944&r2=1157945&view=diff ============================================================================== --- commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java (original) +++ commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java Mon Aug 15 18:51:17 2011 @@ -1224,12 +1224,12 @@ public class DoubleMetaphoneTest extends @Test public void testCCedilla() { - this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00e7", "S"); // c-cedilla + assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00e7", "S")); // c-cedilla } @Test public void testNTilde() { - this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00f1", "N"); // n-tilde + assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00f1", "N")); // n-tilde } public void validateFixture(String[][] pairs) {