[PRISM] Enable TestParse#test_global_variable

This commit is contained in:
Kevin Newton 2024-05-15 11:48:20 -04:00
parent cd8b28f0e7
commit 2aed14d65b
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,3 @@
exclude(:test_global_variable, "error message format")
exclude(:test_invalid_char, "error message format")
exclude(:test_percent, "error message format")
exclude(:test_question, "error message format")

View File

@ -875,7 +875,8 @@ x = __ENCODING__
$test_parse_foobarbazqux = nil
assert_equal(nil, $&)
assert_equal(nil, eval('alias $& $preserve_last_match'))
assert_syntax_error('a = $#', /as a global variable name\na = \$\#\n \^~$/)
assert_syntax_error('a = $#', /as a global variable name/)
assert_syntax_error('a = $#', /a = \$\#\n(^|.+?\| ) \^~(?!~)/)
end
def test_invalid_instance_variable