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 1315571 More tests. 1315571 is described below commit 13155712bdbfa751d687b4bce186fb0d41583344 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Jul 11 19:04:04 2020 -0400 More tests. --- src/test/java/org/apache/commons/text/StringSubstitutorTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java index 3465fea..51b72fc 100644 --- a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java +++ b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java @@ -282,7 +282,9 @@ public class StringSubstitutorTest { @Test @Disabled public void testReplace_JiraText178_WeirdPattens_Partial() throws IOException { - doReplace("$${1", "$${${a}", false); + doNotReplace("${${a}"); // "${a" is not a variable + doReplace("${1}", "$${${a}}", false); + doReplace("${${a}", "$${${a}", false); // not "$${1" or "${1" ? } /**