ruby-changes:26608
From: ktsj <ko1@a...>
Date: Sun, 30 Dec 2012 11:06:51 +0900 (JST)
Subject: [ruby-changes:26608] ktsj:r38658 (trunk): * test/ruby/test_keyword.rb: add a test for passing hash
ktsj 2012-12-30 11:06:32 +0900 (Sun, 30 Dec 2012) New Revision: 38658 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38658 Log: * test/ruby/test_keyword.rb: add a test for passing hash as a last argument. [ruby-dev:46712] [Bug #7529] Modified files: trunk/ChangeLog trunk/test/ruby/test_keyword.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38657) +++ ChangeLog (revision 38658) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Dec 30 10:58:04 2012 Kazuki Tsujimoto <kazuki@c...> + + * 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@c...> * vm_insnhelper.c: set keyword hash on Proc/block calls. Index: test/ruby/test_keyword.rb =================================================================== --- test/ruby/test_keyword.rb (revision 38657) +++ test/ruby/test_keyword.rb (revision 38658) @@ -21,6 +21,7 @@ class TestKeywordArguments < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/ruby/test_keyword.rb#L21 def test_f2 assert_equal([:xyz, "foo", 424242], f2(:xyz)) + assert_raise(ArgumentError) { f2({}) } # [ruby-dev:46712] [Bug #7529] end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/