You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by jw...@apache.org on 2018/05/20 02:02:07 UTC

groovy git commit: GROOVY-8171: Escaped dollar slashy (backport test)

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X c5062a1ed -> 02e572778


GROOVY-8171: Escaped dollar slashy (backport test)

Partial cherry-pick from commit 869c365161457c050d5a54c7ff43d73d3263f34e


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/02e57277
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/02e57277
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/02e57277

Branch: refs/heads/GROOVY_2_5_X
Commit: 02e5727781b5c4ca2a581af4c7028aacc51b4da9
Parents: c5062a1
Author: John Wagenleitner <jw...@apache.org>
Authored: Sat May 19 18:58:41 2018 -0700
Committer: John Wagenleitner <jw...@apache.org>
Committed: Sat May 19 18:58:41 2018 -0700

----------------------------------------------------------------------
 src/test/groovy/StringTest.groovy | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/02e57277/src/test/groovy/StringTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/StringTest.groovy b/src/test/groovy/StringTest.groovy
index 56cb2d7..7d70733 100644
--- a/src/test/groovy/StringTest.groovy
+++ b/src/test/groovy/StringTest.groovy
@@ -231,6 +231,16 @@ foo
     void testDollarEscaping() {
         def text = $/a/b\c$$ $//$
         assert text == 'a/b\\c$ /'
+
+        //GROOVY-8171
+        text = $/$$//$
+        assert text == '$/'
+
+        text = $/$$$$//$
+        assert text == '$$/'
+
+        text = $/$$$$$//$
+        assert text == '$$/'
     }
 
     void testSplit() {