add method

This commit is contained in:
Looly
2021-10-23 23:19:50 +08:00
parent 41e488a36b
commit d571567c52
8 changed files with 83 additions and 5 deletions

View File

@@ -33,5 +33,19 @@ public class CharSequenceUtilTest {
Assert.assertEquals( str + " is Good", result);
}
@Test
public void normalizeTest(){
// https://blog.csdn.net/oscar999/article/details/105326270
String str1 = "\u00C1";
String str2 = "\u0041\u0301";
Assert.assertNotEquals(str1, str2);
str1 = CharSequenceUtil.normalize(str1);
str2 = CharSequenceUtil.normalize(str2);
Assert.assertEquals(str1, str2);
}
// ------------------------------------------------------------------------ remove
}