Skip to content

Commit

Permalink
* test/ruby/test_keyword.rb: add a test for passing hash
Browse files Browse the repository at this point in the history
  as a last argument. [ruby-dev:46712] [Bug ruby#7529]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
k-tsj committed Dec 30, 2012
1 parent 371c07f commit 2a4e4d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
1 change: 1 addition & 0 deletions test/ruby/test_keyword.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def f2(x, str: "foo", num: 424242)

def test_f2
assert_equal([:xyz, "foo", 424242], f2(:xyz))
assert_raise(ArgumentError) { f2({}) } # [ruby-dev:46712] [Bug #7529]
end


Expand Down

0 comments on commit 2a4e4d8

Please sign in to comment.