Skip to content
Permalink
Browse files
Merge branch 'pr-913'
This closes #913
  • Loading branch information
kinow committed Jun 21, 2022
2 parents 2e71945 + b16b93f commit 1bad88dbc3c18e5a430a087162e7a80cd446d5d7
Showing 1 changed file with 3 additions and 7 deletions.
@@ -305,7 +305,6 @@ public void testAbbreviate_StringIntInt() {
assertAbbreviateWithOffset("...ijklmno", 8, 10);
assertAbbreviateWithOffset("...ijklmno", 9, 10);
assertAbbreviateWithOffset("...ijklmno", 10, 10);
assertAbbreviateWithOffset("...ijklmno", 10, 10);
assertAbbreviateWithOffset("...ijklmno", 11, 10);
assertAbbreviateWithOffset("...ijklmno", 12, 10);
assertAbbreviateWithOffset("...ijklmno", 13, 10);
@@ -1622,13 +1621,11 @@ public void testReCapitalize() {
@Test
public void testRemove_char() {
// StringUtils.remove(null, *) = null
assertNull(StringUtils.remove(null, 'a'));
assertNull(StringUtils.remove(null, 'a'));
assertNull(StringUtils.remove(null, null));
assertNull(StringUtils.remove(null, 'a'));

// StringUtils.remove("", *) = ""
assertEquals("", StringUtils.remove("", 'a'));
assertEquals("", StringUtils.remove("", 'a'));
assertEquals("", StringUtils.remove("", null));
assertEquals("", StringUtils.remove("", 'a'));

// StringUtils.remove("queued", 'u') = "qeed"
@@ -2774,7 +2771,7 @@ public void testSplitPreserveAllTokens_StringChar() {
assertEquals("b", res[1]);
assertEquals("c", res[2]);
assertEquals("", res[3]);
assertEquals("", res[3]);
assertEquals("", res[4]);

// Match example in javadoc
{
@@ -3044,7 +3041,6 @@ public void testTruncate_StringInt() {
() -> StringUtils.truncate(null, Integer.MIN_VALUE),
"maxWith cannot be negative");
assertEquals("", StringUtils.truncate("", 10));
assertEquals("", StringUtils.truncate("", 10));
assertEquals("abc", StringUtils.truncate("abcdefghij", 3));
assertEquals("abcdef", StringUtils.truncate("abcdefghij", 6));
assertEquals("", StringUtils.truncate("abcdefghij", 0));

0 comments on commit 1bad88d

Please sign in to comment.