diff options
| author | Masamitsu MURASE <[email protected]> | 2013-01-20 01:49:52 +0900 |
|---|---|---|
| committer | Masamitsu MURASE <[email protected]> | 2013-01-20 01:49:52 +0900 |
| commit | 8f8d9fd41a57c8356b92d5e1d5b91ce0f6264b5c (patch) | |
| tree | b28e3d29b613ae058e3f90ef59d8a2d7ad750ade /test | |
| parent | 0dd9a0fd6a24399852e7dda3f87700bb6f283574 (diff) | |
| download | mruby-8f8d9fd41a57c8356b92d5e1d5b91ce0f6264b5c.tar.gz mruby-8f8d9fd41a57c8356b92d5e1d5b91ce0f6264b5c.zip | |
Add test for issue #750.
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/bs_block.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index 4bfdc304a..10313908b 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -332,6 +332,14 @@ assert('BS Block [ruby-dev:31160]') do m {|(v,(*))|} == nil end +assert('BS Block [issue #750]') do + def m(a, *b) + yield + end + args = [1, 2, 3] + m(*args){ 1 } == 1 +end + assert('BS Block 31') do def m() yield |
