From 4a6335717f11b799bcc7c12564b9c25da677656c Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 18 Aug 2007 03:47:03 +0000 Subject: [PATCH] add test for [ruby-dev:31472]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_block.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index 2e680b953f..d90f5ede89 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -432,4 +432,13 @@ assert_equal 'ok', %q{ :ng end }, '[ruby-dev:31464]' +assert_equal 'ok', %q{ + begin + lambda{|&b|}.call(3) + rescue ArgumentError + :ok + else + :ng + end +}, '[ruby-dev:31472]'