Add a test case for GROOVY-2324: grammar forces usage of lowercase names for commands
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a5f4eba4 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a5f4eba4 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a5f4eba4 Branch: refs/heads/master Commit: a5f4eba401a9541ea33ef76ef0310e5004237a77 Parents: da7501e Author: sunlan <[email protected]> Authored: Wed Jan 25 20:00:14 2017 +0800 Committer: sunlan <[email protected]> Committed: Wed Jan 25 20:00:14 2017 +0800 ---------------------------------------------------------------------- .../org/apache/groovy/parser/antlr4/GroovyParserTest.groovy | 1 + .../src/test/resources/bugs/BUG-GROOVY-2324.groovy | 5 +++++ 2 files changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/a5f4eba4/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy ---------------------------------------------------------------------- diff --git a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy index 4ef080b..6c058eb 100644 --- a/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy +++ b/subprojects/groovy-parser-antlr4/src/test/groovy/org/apache/groovy/parser/antlr4/GroovyParserTest.groovy @@ -346,5 +346,6 @@ class GroovyParserTest extends GroovyTestCase { doRunAndTest('bugs/BUG-GROOVY-4762.groovy'); doRunAndTest('bugs/BUG-GROOVY-4438.groovy'); doRunAndTest('bugs/BUG-GROOVY-6038.groovy'); + doRunAndTest('bugs/BUG-GROOVY-2324.groovy'); } } http://git-wip-us.apache.org/repos/asf/groovy/blob/a5f4eba4/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-2324.groovy ---------------------------------------------------------------------- diff --git a/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-2324.groovy b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-2324.groovy new file mode 100644 index 0000000..79cab4f --- /dev/null +++ b/subprojects/groovy-parser-antlr4/src/test/resources/bugs/BUG-GROOVY-2324.groovy @@ -0,0 +1,5 @@ +class Foo {} + +Foo bar +bar = new Foo() +assert bar instanceof Foo
