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 27e6efa More tests.
27e6efa is described below
commit 27e6efa19a74880c93ea96f631e8bda1a6757062
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jul 6 10:18:45 2020 -0400
More tests.
---
.../java/org/apache/commons/text/StringSubstitutorTest.java | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
index 3aaac8d..2fc2d66 100644
--- a/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
+++ b/src/test/java/org/apache/commons/text/StringSubstitutorTest.java
@@ -303,6 +303,7 @@ public class StringSubstitutorTest {
*/
@Test
public void testReplaceComplexEscaping() throws IOException {
+ doTestReplace("${quick brown fox}", "$${${animal}}", false);
doTestReplace("The ${quick brown fox} jumps over the lazy dog.", "The
$${${animal}} jumps over the ${target}.",
true);
doTestReplace("${${animal}}", "$${$${animal}}", false);
@@ -841,7 +842,7 @@ public class StringSubstitutorTest {
*/
@Test
public void testReplaceVariablesCount2() throws IOException {
- //doTestReplace("12", "${a}${b}", false);
+ // doTestReplace("12", "${a}${b}", false);
doTestReplace("1122", "${aa}${bb}", false);
doTestReplace(ACTUAL_ANIMAL + ACTUAL_ANIMAL, "${animal}${animal}",
false);
doTestReplace(ACTUAL_TARGET + ACTUAL_TARGET, "${target}${target}",
false);
@@ -916,10 +917,10 @@ public class StringSubstitutorTest {
@Test
@Disabled
public void testReplaceWeirdPattensJiraText178() throws IOException {
- doTestNoReplace("$${");
- doTestNoReplace("$${a");
- doTestNoReplace("$$${");
- doTestNoReplace("$$${a");
+ doTestNoReplace("$${");
+ doTestNoReplace("$${a");
+ doTestNoReplace("$$${");
+ doTestNoReplace("$$${a");
}
/**