Skip to content

Commit 6f73fb1

Browse files
committed
CODEC-127 Convert to use Unicode except in comments
Also simplify test git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1157962 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6db3ec3 commit 6f73fb1

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/test/org/apache/commons/codec/language/bm/BeiderMorseEncoderTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.apache.commons.codec.language.bm;
1919

2020
import static org.junit.Assert.assertEquals;
21+
import static org.junit.Assert.assertFalse;
2122

2223
import org.apache.commons.codec.EncoderException;
2324
import org.apache.commons.codec.StringEncoder;
@@ -90,7 +91,8 @@ public void testAsciiEncodeNotEmpty2Letters() throws EncoderException {
9091
@Test
9192
public void testEncodeAtzNotEmpty() throws EncoderException {
9293
BeiderMorseEncoder bmpm = createGenericApproxEncoder();
93-
String[] names = { "ácz", "átz", "Ignácz", "Ignátz", "Ignác" };
94+
//String[] names = { "ácz", "átz", "Ignácz", "Ignátz", "Ignác" };
95+
String[] names = { "\u00e1cz", "\u00e1tz", "Ign\u00e1cz", "Ign\u00e1tz", "Ign\u00e1c" };
9496
for (String name : names) {
9597
assertNotEmpty(bmpm, name);
9698
}
@@ -139,7 +141,7 @@ public void testNegativeIndexForRuleMatchIndexOutOfBoundsException() {
139141
public void testSetConcat() {
140142
BeiderMorseEncoder bmpm = new BeiderMorseEncoder();
141143
bmpm.setConcat(false);
142-
assertEquals("Should be able to set concat to false", false, bmpm.isConcat());
144+
assertFalse("Should be able to set concat to false", bmpm.isConcat());
143145
}
144146

145147
@Test

0 commit comments

Comments
 (0)