groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: show result of expanding unicode as comment
Date Sat, 23 Jun 2018 06:47:21 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 5e3958762 -> 9b4d18b66


show result of expanding unicode as comment


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

Branch: refs/heads/master
Commit: 9b4d18b66899aa14bdfc40c03d1760db872ebe07
Parents: 5e39587
Author: Paul King <paulk@asert.com.au>
Authored: Sat Jun 23 16:47:12 2018 +1000
Committer: Paul King <paulk@asert.com.au>
Committed: Sat Jun 23 16:47:12 2018 +1000

----------------------------------------------------------------------
 src/test/groovy/EscapedUnicodeTest.groovy | 28 ++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/9b4d18b6/src/test/groovy/EscapedUnicodeTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/EscapedUnicodeTest.groovy b/src/test/groovy/EscapedUnicodeTest.groovy
index a463218..af64aaa 100644
--- a/src/test/groovy/EscapedUnicodeTest.groovy
+++ b/src/test/groovy/EscapedUnicodeTest.groovy
@@ -51,3 +51,31 @@ class EscapedUnicodeTest extends GroovyTestCase {
 \u007d
 */
 
+/*
+class EscapedUnicodeTest extends GroovyTestCase {
+
+    void testAssert() {
+        def x = "abc"
+
+        assert x != "foo"
+        assert x !=  null
+        assert x != "def"
+        assert x == "abc"
+
+        assert x.equals("abc")
+	}
+
+    void testUnknownVariable() {
+        try {
+	        def y = this.x
+	        fail("x is undefined, should throw an exception")
+        }
+        catch (MissingPropertyException e) {
+			assert e.getProperty() == "x"
+            def text = e.message
+            assert text == "No such property: x for class: EscapedUnicodeTest"
+        }
+    }
+
+}
+ */


Mime
View raw message