groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject [groovy] branch master updated: Add more tests
Date Mon, 04 Nov 2019 18:33:14 GMT
This is an automated email from the ASF dual-hosted git repository.

sunlan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/master by this push:
     new 5026553  Add more tests
5026553 is described below

commit 502655371ad936ebcf4012195acf4b5e873ed10d
Author: Daniel Sun <sunlan@apache.org>
AuthorDate: Tue Nov 5 02:32:08 2019 +0800

    Add more tests
---
 .../test/resources/core/EnumDeclaration_02.groovy  | 27 +++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/subprojects/parser-antlr4/src/test/resources/core/EnumDeclaration_02.groovy b/subprojects/parser-antlr4/src/test/resources/core/EnumDeclaration_02.groovy
index a5768db..b4d8d13 100644
--- a/subprojects/parser-antlr4/src/test/resources/core/EnumDeclaration_02.groovy
+++ b/subprojects/parser-antlr4/src/test/resources/core/EnumDeclaration_02.groovy
@@ -67,4 +67,29 @@ enum F {
 
 enum G implements I<T> {
 
-}
\ No newline at end of file
+}
+
+enum J {
+    A,
+    B,
+}
+
+enum K {
+    A,
+    B,
+    ;
+}
+
+enum Outer {
+    A, B
+    enum Inner{X, Y}
+}
+
+class TestClass {
+    enum OuterEnum {
+        VALUE,
+        enum InnerEnum {
+            A
+        }
+    }
+}


Mime
View raw message