Add array test cases for TestParse#test_define_singleton_error
This commit is contained in:
parent
cdda284cbe
commit
7ea678b24b
Notes:
git
2024-07-30 03:48:42 +00:00
@ -463,6 +463,8 @@ class TestParse < Test::Unit::TestCase
|
|||||||
assert_parse_error(%q[def ((%w();1)).foo; end], msg)
|
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 (:"#{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
|
end
|
||||||
|
|
||||||
def test_flip_flop
|
def test_flip_flop
|
||||||
|
Loading…
x
Reference in New Issue
Block a user