@Test public void englishIsUpperLowerCase() { String allValues = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~`!@#$%^&*()_-+=[]{};<>,.?/|"; String jdkUpper = allValues.toUpperCase(); String upper = StringIterate.englishToUpperCase(allValues); Assert.assertEquals(jdkUpper.length(), upper.length()); Assert.assertEquals(jdkUpper, upper); String jdkLower = allValues.toLowerCase(); String lower = StringIterate.englishToLowerCase(allValues); Assert.assertEquals(jdkLower.length(), lower.length()); Assert.assertEquals(jdkLower, lower); }
@Test public void englishToLowerCase() { Assert.assertEquals("abc", StringIterate.englishToLowerCase("ABC")); Assert.assertEquals("a,b,c", StringIterate.englishToLowerCase("A,B,C")); Assert.assertSame("a,b,c", StringIterate.englishToLowerCase("a,b,c")); }
@Test public void englishToUpperLowerCase() { Assert.assertEquals("ABC", StringIterate.englishToUpperCase("abc")); Assert.assertEquals("abc", StringIterate.englishToLowerCase("ABC")); }