You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/11/04 18:33:14 UTC

[groovy] branch master updated: Add more tests

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 <su...@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
+        }
+    }
+}