diff options
| author | ksss <[email protected]> | 2014-05-06 23:23:32 +0900 |
|---|---|---|
| committer | ksss <[email protected]> | 2014-05-06 23:30:02 +0900 |
| commit | 0c3226db0443972eb76bde5af3f9e14bdb4dbd85 (patch) | |
| tree | acae276ce7c4169b084a209ee179f6a2ad003ee0 /test | |
| parent | 12915f95777448b9d8173e24824641eb7da10068 (diff) | |
| download | mruby-0c3226db0443972eb76bde5af3f9e14bdb4dbd85.tar.gz mruby-0c3226db0443972eb76bde5af3f9e14bdb4dbd85.zip | |
OP_ENTER fix variable assignment
Diffstat (limited to 'test')
| -rw-r--r-- | test/t/bs_block.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/t/bs_block.rb b/test/t/bs_block.rb index 0a58741e3..04a4a15ba 100644 --- a/test/t/bs_block.rb +++ b/test/t/bs_block.rb @@ -512,3 +512,10 @@ assert('BS Block 37') do end end +assert('BS Block 38') do + def iter + yield 1,2,3,4,5,6 + end + + assert_equal [1,2,3,4,5], iter{|a,b,c=:c,d,e| [a,b,c,d,e]} +end |
