You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2021/03/02 16:10:28 UTC
[groovy] branch master updated: GROOVY-9805: add test case
This is an automated email from the ASF dual-hosted git repository.
emilles 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 2b52281 GROOVY-9805: add test case
2b52281 is described below
commit 2b522814b5d320e759f3f63c3a3adeb7092e9b2d
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Tue Mar 2 10:10:17 2021 -0600
GROOVY-9805: add test case
---
src/test/groovy/bugs/Groovy9805.groovy | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/test/groovy/bugs/Groovy9805.groovy b/src/test/groovy/bugs/Groovy9805.groovy
new file mode 100644
index 0000000..c4e2398
--- /dev/null
+++ b/src/test/groovy/bugs/Groovy9805.groovy
@@ -0,0 +1,34 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package groovy.bugs
+
+import groovy.test.NotYetImplemented
+import org.junit.Test
+
+import static groovy.test.GroovyAssert.assertScript
+
+final class Groovy9805 {
+ @NotYetImplemented @Test
+ void testNoVerifyErrorForStatementsOnSameLine() {
+ assertScript '''
+ def x; try { x = System.nanoTime(); x = "ok" } catch (e) { }
+ // ^ adding a label here in classgen is possible fix
+ '''
+ }
+}