summaryrefslogtreecommitdiff
path: root/bootstraptest/test_block.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-16 10:21:49 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-16 10:21:49 +0000
commit5fe865d0ac29601d8220e0055e46282cc25a472c (patch)
treebd6736d09280eb1e9b0dacfd0555ee66292ff343 /bootstraptest/test_block.rb
parent9a26bd3f57fac024f0b6d6ad11882ced875a5007 (diff)
add test for [ruby-dev:31437].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest/test_block.rb')
-rw-r--r--bootstraptest/test_block.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index 747a48f..e935396 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]'