summaryrefslogtreecommitdiff
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-07 13:31:51 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-07 14:24:31 -0400
commitb4b39a619984bbb3c96406a1eb4dfb477168a1cd (patch)
tree32d38c64a772d8beed810cb79e93744b4411f6f7 /test/ruby/test_syntax.rb
parent2bfc48755e7fc39e1ee33181a4bd6b72aa27de48 (diff)
[PRISM] Enable test_methoddef_endless_commandHEADmaster
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 44162f06cb..8bdac2ebd1 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -1755,8 +1755,8 @@ eom
assert_equal("instance ok", k.new.rescued("ok"))
# Current technical limitation: cannot prepend "private" or something for command endless def
- error = /syntax error, unexpected string literal/
- error2 = /syntax error, unexpected local variable or method/
+ error = /(syntax error,|\^~*) unexpected string literal/
+ error2 = /(syntax error,|\^~*) unexpected local variable or method/
assert_syntax_error('private def foo = puts "Hello"', error)
assert_syntax_error('private def foo() = puts "Hello"', error)
assert_syntax_error('private def foo(x) = puts x', error2)