This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push: new 984be0337 Remove trailing whitespace 984be0337 is described below commit 984be03374825ebcc350f7616beadc1a4426887b Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Fri Nov 3 11:37:55 2023 -0400 Remove trailing whitespace --- .../commons/lang3/StringUtilsSubstringTest.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsSubstringTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsSubstringTest.java index 4bd87454b..8e8f83f0e 100644 --- a/src/test/java/org/apache/commons/lang3/StringUtilsSubstringTest.java +++ b/src/test/java/org/apache/commons/lang3/StringUtilsSubstringTest.java @@ -327,58 +327,58 @@ public void testSubstringBetween_StringString() { */ @Test public void testSubstringsBetween_StringStringString() { - + String[] results = StringUtils.substringsBetween("[one], [two], [three]", "[", "]"); assertEquals(3, results.length); assertEquals("one", results[0]); assertEquals("two", results[1]); assertEquals("three", results[2]); - + results = StringUtils.substringsBetween("[one], [two], three", "[", "]"); assertEquals(2, results.length); assertEquals("one", results[0]); assertEquals("two", results[1]); - + results = StringUtils.substringsBetween("[one], [two], three]", "[", "]"); assertEquals(2, results.length); assertEquals("one", results[0]); assertEquals("two", results[1]); - + results = StringUtils.substringsBetween("[one], two], three]", "[", "]"); assertEquals(1, results.length); assertEquals("one", results[0]); - + results = StringUtils.substringsBetween("one], two], [three]", "[", "]"); assertEquals(1, results.length); assertEquals("three", results[0]); - + // 'ab hello ba' will match, but 'ab non ba' won't // this is because the 'a' is shared between the two and can't be matched twice results = StringUtils.substringsBetween("aabhellobabnonba", "ab", "ba"); assertEquals(1, results.length); assertEquals("hello", results[0]); - + results = StringUtils.substringsBetween("one, two, three", "[", "]"); assertNull(results); - + results = StringUtils.substringsBetween("[one, two, three", "[", "]"); assertNull(results); - + results = StringUtils.substringsBetween("one, two, three]", "[", "]"); assertNull(results); - + results = StringUtils.substringsBetween("[one], [two], [three]", "[", null); assertNull(results); - + results = StringUtils.substringsBetween("[one], [two], [three]", null, "]"); assertNull(results); - + results = StringUtils.substringsBetween("[one], [two], [three]", "", ""); assertNull(results); - + results = StringUtils.substringsBetween(null, "[", "]"); assertNull(results); - + results = StringUtils.substringsBetween("", "[", "]"); assertEquals(0, results.length); }