add'l splitByCharacterType tests for single trailing characters
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@611290 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea810cbbbd
commit
c739e01c68
|
@ -2617,6 +2617,7 @@ public class StringUtils {
|
|||
* StringUtils.splitByCamelCase("ab de fg") = ["ab", " ", "de", " ", "fg"]
|
||||
* StringUtils.splitByCamelCase("ab de fg") = ["ab", " ", "de", " ", "fg"]
|
||||
* StringUtils.splitByCamelCase("ab:cd:ef") = ["ab", ":", "cd", ":", "ef"]
|
||||
* StringUtils.splitByCamelCase("number5") = ["number", "5"]
|
||||
* StringUtils.splitByCamelCase("fooBar") = ["foo", "B", "ar"]
|
||||
* StringUtils.splitByCamelCase("foo200Bar") = ["foo", "200", "B", "ar"]
|
||||
* StringUtils.splitByCamelCase("ASFRules") = ["ASFR", "ules"]
|
||||
|
@ -2644,6 +2645,7 @@ public class StringUtils {
|
|||
* StringUtils.splitByCamelCase("ab de fg") = ["ab", " ", "de", " ", "fg"]
|
||||
* StringUtils.splitByCamelCase("ab de fg") = ["ab", " ", "de", " ", "fg"]
|
||||
* StringUtils.splitByCamelCase("ab:cd:ef") = ["ab", ":", "cd", ":", "ef"]
|
||||
* StringUtils.splitByCamelCase("number5") = ["number", "5"]
|
||||
* StringUtils.splitByCamelCase("fooBar") = ["foo", "Bar"]
|
||||
* StringUtils.splitByCamelCase("foo200Bar") = ["foo", "200", "Bar"]
|
||||
* StringUtils.splitByCamelCase("ASFRules") = ["ASF", "Rules"]
|
||||
|
|
|
@ -873,6 +873,12 @@ public class StringUtilsTest extends TestCase {
|
|||
|
||||
assertTrue(ArrayUtils.isEquals(new String[] { "ab", ":", "cd", ":",
|
||||
"ef" }, StringUtils.splitByCharacterType("ab:cd:ef", camelCase)));
|
||||
|
||||
assertTrue(ArrayUtils.isEquals(new String[] { "number", "5" },
|
||||
StringUtils.splitByCharacterType("number5")));
|
||||
|
||||
assertTrue(ArrayUtils.isEquals(new String[] { "number", "5" },
|
||||
StringUtils.splitByCharacterType("number5", camelCase)));
|
||||
|
||||
assertTrue(ArrayUtils.isEquals(new String[] { "foo", "B", "ar" },
|
||||
StringUtils.splitByCharacterType("fooBar")));
|
||||
|
@ -891,7 +897,6 @@ public class StringUtilsTest extends TestCase {
|
|||
|
||||
assertTrue(ArrayUtils.isEquals(new String[] { "ASF", "Rules" },
|
||||
StringUtils.splitByCharacterType("ASFRules", camelCase)));
|
||||
|
||||
}
|
||||
|
||||
public void testDeprecatedDeleteSpace_String() {
|
||||
|
|
Loading…
Reference in New Issue