mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_keyword.rb: add a test for passing hash
as a last argument. [ruby-dev:46712] [Bug #7529] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
371c07f2a2
commit
2a4e4d8673
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sun Dec 30 10:58:04 2012 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* test/ruby/test_keyword.rb: add a test for passing hash
|
||||
as a last argument. [ruby-dev:46712] [Bug #7529]
|
||||
|
||||
Sun Dec 30 10:51:29 2012 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||
|
||||
* vm_insnhelper.c: set keyword hash on Proc/block calls.
|
||||
|
|
|
@ -21,6 +21,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]
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue