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 0a2a736  More tests.
0a2a736 is described below

commit 0a2a736df7e24a3f908f55cea1e214946c5f1c1e
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jul 6 10:53:12 2020 -0400

    More tests.
---
 src/test/java/org/apache/commons/text/StringSubstitutorTest.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java 
b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
index 71b3e1d..d2cdec4 100644
--- a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
+++ b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
@@ -303,9 +303,15 @@ public class StringSubstitutorTest {
      */
     @Test
     public void testReplaceComplexEscaping() throws IOException {
+        doReplace("${1}", "$${${a}}", false);
+        doReplace("${11}", "$${${aa}}", false);
+        doReplace("${111}", "$${${aaa}}", false);
         doReplace("${quick brown fox}", "$${${animal}}", false);
         doReplace("The ${quick brown fox} jumps over the lazy dog.", "The 
$${${animal}} jumps over the ${target}.",
             true);
+        doReplace("${${a}}", "$${$${a}}", false);
+        doReplace("${${aa}}", "$${$${aa}}", false);
+        doReplace("${${aaa}}", "$${$${aaa}}", false);
         doReplace("${${animal}}", "$${$${animal}}", false);
         doReplace(".${${animal}}", ".$${$${animal}}", false);
         doReplace("${${animal}}.", "$${$${animal}}.", false);

Reply via email to