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-text.git
The following commit(s) were added to refs/heads/master by this push: new 375fd85 [TEXT-178] StringSubstitutor incorrectly removes some escape characters. 375fd85 is described below commit 375fd85093d6cbfb3fa50b4d296d80b72ffd1bcb Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 4 21:02:06 2020 -0400 [TEXT-178] StringSubstitutor incorrectly removes some escape characters. --- .../org/apache/commons/text/StringSubstitutorTest.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java index 4970755..ae9834f 100644 --- a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java +++ b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java @@ -224,21 +224,6 @@ public class StringSubstitutorTest { target.getValueDelimiterMatcher().toString()); } - @Test - public void testGetMinVariableLength() throws IOException { - final StringSubstitutor sub = new StringSubstitutor(); - assertEquals(4, sub.getMinVariableLength()); - sub.setVariablePrefix('a'); - assertEquals(3, sub.getMinVariableLength()); - sub.setVariablePrefix("abc"); - assertEquals(5, sub.getMinVariableLength()); - sub.setVariableSuffix("xyz"); - assertEquals(7, sub.getMinVariableLength()); - sub.setVariablePrefix(StringUtils.EMPTY); - sub.setVariableSuffix(StringUtils.EMPTY); - assertEquals(1, sub.getMinVariableLength()); - } - /** * Tests get set.