diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-30 02:06:32 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-12-30 02:06:32 +0000 |
commit | 2a4e4d86733b40a017d9465e6328d63fa1fbb411 (patch) | |
tree | 8a8a699487b60f99e7597521242a95c22473523e /test/ruby | |
parent | 371c07f2a2ce59ff9a045181b997826b3da3ef8a (diff) | |
download | ruby-2a4e4d86733b40a017d9465e6328d63fa1fbb411.tar.gz |
* 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
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 e9d82f8899..a8a609696a 100644 --- a/test/ruby/test_keyword.rb +++ b/test/ruby/test_keyword.rb @@ -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 |