Add array test cases for TestParse#test_define_singleton_error

This commit is contained in:
yui-knk 2024-07-30 11:31:23 +09:00 committed by Yuichiro Kaneko
parent cdda284cbe
commit 7ea678b24b
Notes: git 2024-07-30 03:48:42 +00:00

View File

@ -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