From c6aa3447442b61dc95ce81bf3ddf8ba79bcdc10d Mon Sep 17 00:00:00 2001 From: Tom Lipkis Date: Mon, 3 Jan 2022 14:49:35 -0800 Subject: [PATCH] Added assertions that StringUtil.toUnaccented() works on ligatures --- test/src/org/lockss/util/TestStringUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/src/org/lockss/util/TestStringUtil.java b/test/src/org/lockss/util/TestStringUtil.java index 30032ebf298..aa2dd82d3ab 100644 --- a/test/src/org/lockss/util/TestStringUtil.java +++ b/test/src/org/lockss/util/TestStringUtil.java @@ -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() {