summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-05-15 11:27:03 -0400
committerKevin Newton <[email protected]>2024-05-15 12:49:45 -0400
commitbe239cc7bc50d3882bc3dec2bbe1f4f0c1e797fa (patch)
tree6b8dd690649d0bf084f62c6e491a1fe94f32fa1e /test
parentcabc0e093cca984cd6edda0d070b70dc1c125363 (diff)
[PRISM] Enable TestParse#test_unexpected_eof
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_parse.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 1e39fbf72f..c77cdc5673 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1390,7 +1390,7 @@ x = __ENCODING__
end
def test_unexpected_eof
- assert_syntax_error('unless', /^ \^\Z/)
+ assert_syntax_error('unless', /(^|\| ) \^(?!~)/)
end
def test_location_of_invalid_token