diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-12 06:21:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-12 06:21:35 +0000 |
commit | 2674f9a8158b521d22867415db5fd49ebe615c98 (patch) | |
tree | af1461e3994179ba6dbd5e6f3c759be4dc130089 /test/ruby | |
parent | 9ef4e13459c95922e7384194c90b91bf67dd785a (diff) | |
download | ruby-2674f9a8158b521d22867415db5fd49ebe615c98.tar.gz |
vm_insnhelper.c: non-symbol key
* vm_insnhelper.c (vm_callee_setup_keyword_arg): non-symbol key is not
a keyword argument, keep it as an positional argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_keyword.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb index c9a9ed0a07..ae56757032 100644 --- a/test/ruby/test_keyword.rb +++ b/test/ruby/test_keyword.rb @@ -23,6 +23,7 @@ class TestKeywordArguments < Test::Unit::TestCase def test_f2 assert_equal([:xyz, "foo", 424242], f2(:xyz)) assert_raise(ArgumentError) { f2({}) } # [ruby-dev:46712] [Bug #7529] + assert_equal([{"bar"=>42}, "foo", 424242], f2("bar"=>42)) end |