summaryrefslogtreecommitdiff
path: root/test/ruby/test_syntax.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 01:44:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-01 01:52:48 +0900
commit431a99b5569e90dd76677be273ad81640ce7e757 (patch)
tree2c56208cbf94671c2f5377c0121dd332eed863f0 /test/ruby/test_syntax.rb
parentd4eef04883104c6b4618a843651584cb65c9428d (diff)
Split warning messages for tag-jump
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r--test/ruby/test_syntax.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb
index 85ff68ec25..b98a233937 100644
--- a/test/ruby/test_syntax.rb
+++ b/test/ruby/test_syntax.rb
@@ -155,7 +155,7 @@ class TestSyntax < Test::Unit::TestCase
h = {k3: 31}
assert_raise(ArgumentError) {o.kw(**h)}
h = {"k1"=>11, k2: 12}
- assert_warn(/The last argument for `kw' .* is split into positional and keyword parameters/) do
+ assert_warn(/The last argument is split into positional and keyword parameters.* for `kw'/m) do
assert_raise(ArgumentError) {o.kw(**h)}
end
end