Skip to content

Commit c6aa344

Browse files
committed
Added assertions that StringUtil.toUnaccented() works on ligatures
1 parent 13e9b29 commit c6aa344

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/src/org/lockss/util/TestStringUtil.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,9 @@ public void testToUnaccented() {
13341334
// swedish: Now is the time (small letter 'a' with diaeresis
13351335
assertEquals("Nu ar det dags", StringUtil.toUnaccented("Nu \u00e4r det dags"));
13361336
assertEquals("University of Lodz", StringUtil.toUnaccented("University of Łódź"));
1337+
assertEquals("oe", StringUtil.toUnaccented("œ"));
1338+
assertEquals("OE", StringUtil.toUnaccented("Œ"));
1339+
assertEquals("ffl", StringUtil.toUnaccented("\uFB04"));
13371340
}
13381341

13391342
public void testHash64NullPayload() {

0 commit comments

Comments
 (0)