diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-20 12:29:51 -0700 |
---|---|---|
committer | Jeremy Evans <code@jeremyevans.net> | 2019-08-30 12:39:31 -0700 |
commit | 856bb3c35d5d81481b2e5dd00353298e8a0c2ee7 (patch) | |
tree | 02844dc2808b315f85ecf71f460e2d49e43d53d4 /test/ruby/test_syntax.rb | |
parent | 42adc5bc6bb532e20bf2191ad99781ee701dea36 (diff) |
Fix remaining warning issues in the tests due to keyword argument separation
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2395
Diffstat (limited to 'test/ruby/test_syntax.rb')
-rw-r--r-- | test/ruby/test_syntax.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/ruby/test_syntax.rb b/test/ruby/test_syntax.rb index 72a3cc2fc7..85ff68ec25 100644 --- a/test/ruby/test_syntax.rb +++ b/test/ruby/test_syntax.rb @@ -155,7 +155,9 @@ class TestSyntax < Test::Unit::TestCase h = {k3: 31} assert_raise(ArgumentError) {o.kw(**h)} h = {"k1"=>11, k2: 12} - assert_raise(ArgumentError) {o.kw(**h)} + assert_warn(/The last argument for `kw' .* is split into positional and keyword parameters/) do + assert_raise(ArgumentError) {o.kw(**h)} + end end def test_keyword_duplicated |