|
18 | 18 | package org.apache.commons.codec.language.bm; |
19 | 19 |
|
20 | 20 | import static org.junit.Assert.assertEquals; |
| 21 | +import static org.junit.Assert.assertFalse; |
21 | 22 |
|
22 | 23 | import org.apache.commons.codec.EncoderException; |
23 | 24 | import org.apache.commons.codec.StringEncoder; |
@@ -90,7 +91,8 @@ public void testAsciiEncodeNotEmpty2Letters() throws EncoderException { |
90 | 91 | @Test |
91 | 92 | public void testEncodeAtzNotEmpty() throws EncoderException { |
92 | 93 | 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" }; |
94 | 96 | for (String name : names) { |
95 | 97 | assertNotEmpty(bmpm, name); |
96 | 98 | } |
@@ -139,7 +141,7 @@ public void testNegativeIndexForRuleMatchIndexOutOfBoundsException() { |
139 | 141 | public void testSetConcat() { |
140 | 142 | BeiderMorseEncoder bmpm = new BeiderMorseEncoder(); |
141 | 143 | 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()); |
143 | 145 | } |
144 | 146 |
|
145 | 147 | @Test |
|
0 commit comments