From 5fe865d0ac29601d8220e0055e46282cc25a472c Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 16 Aug 2007 10:21:49 +0000 Subject: add test for [ruby-dev:31437]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_block.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bootstraptest/test_block.rb') diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index 747a48fdaa..e93539684e 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -410,3 +410,10 @@ o = 1 o = [o, o] }; $ans } + +assert_equal '0', %q{ + def m() + yield [0] + end + m {|*,v| v}.inspect +}, '[ruby-dev:31437]' -- cgit v1.2.3