summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-08 14:20:12 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-09 09:38:43 -0400
commit444030fc6155d32c1f5211ba746bc9c76f70a96d (patch)
treec4af35949686f2c45a557a4d1accea0936a8af65 /test/ruby
parent74c911dfa99e173756e7382982e8eaa0a90a2491 (diff)
[PRISM] Enable passing tests
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index b8de2ba952..bd6dabf2c9 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1259,8 +1259,8 @@ x = __ENCODING__
assert_syntax_error("def f r:def d; def f 0end", /unexpected/)
end;
- assert_syntax_error("def\nf(000)end", /^ \^~~/)
- assert_syntax_error("def\nf(&0)end", /^ \^/)
+ assert_syntax_error("def\nf(000)end", /(^|\| ) \^~~/)
+ assert_syntax_error("def\nf(&0)end", /(^|\| ) \^/)
end
def test_method_location_in_rescue