diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb index 20364c5a0d..dbd9f5cf09 100644 --- a/test/ruby/test_parse.rb +++ b/test/ruby/test_parse.rb @@ -463,6 +463,8 @@ class TestParse < Test::Unit::TestCase assert_parse_error(%q[def ((%w();1)).foo; end], msg) assert_parse_error(%q[def ("#{42}").foo; end], msg) assert_parse_error(%q[def (:"#{42}").foo; end], msg) + assert_parse_error(%q[def ([]).foo; end], msg) + assert_parse_error(%q[def ([1]).foo; end], msg) end def test_flip_flop