From 7ea678b24b88ec0db9c38d7763d9d1014b5ed46d Mon Sep 17 00:00:00 2001 From: yui-knk Date: Tue, 30 Jul 2024 11:31:23 +0900 Subject: [PATCH] Add array test cases for `TestParse#test_define_singleton_error` --- test/ruby/test_parse.rb | 2 ++ 1 file changed, 2 insertions(+) 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