summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorksss <[email protected]>2014-05-06 23:23:32 +0900
committerksss <[email protected]>2014-05-06 23:30:02 +0900
commit0c3226db0443972eb76bde5af3f9e14bdb4dbd85 (patch)
treeacae276ce7c4169b084a209ee179f6a2ad003ee0 /test
parent12915f95777448b9d8173e24824641eb7da10068 (diff)
downloadmruby-0c3226db0443972eb76bde5af3f9e14bdb4dbd85.tar.gz
mruby-0c3226db0443972eb76bde5af3f9e14bdb4dbd85.zip
OP_ENTER fix variable assignment
Diffstat (limited to 'test')
-rw-r--r--test/t/bs_block.rb7
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