Skip to content

Commit 7bdef20

Browse files
committed
Test is useless unless it actually checks the result!
[No wonder the corrupted chars were not found - now fixed] See CODEC-127 git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/branches/generics@1157946 13f79535-47bb-0310-9956-ffa450edef68
1 parent 22b44be commit 7bdef20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/org/apache/commons/codec/language/DoubleMetaphoneTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,12 +1219,12 @@ public void testIsDoubleMetaphoneNotEqual() {
12191219

12201220
@Test
12211221
public void testCCedilla() {
1222-
this.getDoubleMetaphone().isDoubleMetaphoneEqual("", "S");
1222+
assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00e7", "S")); // c-cedilla
12231223
}
12241224

12251225
@Test
12261226
public void testNTilde() {
1227-
this.getDoubleMetaphone().isDoubleMetaphoneEqual("", "N");
1227+
assertTrue(this.getDoubleMetaphone().isDoubleMetaphoneEqual("\u00f1", "N")); // n-tilde
12281228
}
12291229

12301230
public void validateFixture(String[][] pairs) {

0 commit comments

Comments
 (0)