Skip to content

Commit

Permalink
Added assertions that StringUtil.toUnaccented() works on ligatures
Browse files Browse the repository at this point in the history
  • Loading branch information
tlipkis committed Jan 3, 2022
1 parent 13e9b29 commit c6aa344
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/src/org/lockss/util/TestStringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,9 @@ public void testToUnaccented() {
// swedish: Now is the time (small letter 'a' with diaeresis
assertEquals("Nu ar det dags", StringUtil.toUnaccented("Nu \u00e4r det dags"));
assertEquals("University of Lodz", StringUtil.toUnaccented("University of Łódź"));
assertEquals("oe", StringUtil.toUnaccented("œ"));
assertEquals("OE", StringUtil.toUnaccented("Œ"));
assertEquals("ffl", StringUtil.toUnaccented("\uFB04"));
}

public void testHash64NullPayload() {
Expand Down

0 comments on commit c6aa344

Please sign in to comment.