diff options
Diffstat (limited to 'bootstraptest')
-rw-r--r-- | bootstraptest/test_block.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb index e93539684e..1d6a610bc9 100644 --- a/bootstraptest/test_block.rb +++ b/bootstraptest/test_block.rb @@ -417,3 +417,10 @@ assert_equal '0', %q{ end m {|*,v| v}.inspect }, '[ruby-dev:31437]' +assert_equal '[0]', %q{ + def m + yield [0] + end + m{|v, &b| v}.inspect +}, '[ruby-dev:31440]' + |