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 4cf7d20 More tests.
4cf7d20 is described below
commit 4cf7d206f389fd5967facd4c63cd7facfdf77f96
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jul 11 11:46:11 2020 -0400
More tests.
---
src/test/java/org/apache/commons/text/StringSubstitutorTest.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
index 337ae65..b143fd5 100644
--- a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
+++ b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
@@ -916,6 +916,12 @@ public class StringSubstitutorTest {
doNotReplace("${$$${$}}");
doNotReplace("${${}}");
doNotReplace("${${ }}");
+ //
+ doNotReplace("${${a}}");
+ doNotReplace("${$${a}}");
+ doNotReplace("${$$${a}}");
+ doNotReplace("${$$${a}}");
+ doNotReplace("${${${a}");
}
/**
@@ -937,6 +943,7 @@ public class StringSubstitutorTest {
@Test
@Disabled
public void testReplaceWeirdPattens_Partial_JiraText178() throws
IOException {
+ doReplace("${1}", "$${${a}}", false);
doReplace("$${1", "$${${a}", false);
}