Merge branch 'test' of https://github.com/mirichi/mruby into mirichi-test
authorYukihiro "Matz" Matsumoto <[email protected]>
Fri, 4 Jun 2021 13:22:16 +0000 (4 22:22 +0900)
committerYukihiro "Matz" Matsumoto <[email protected]>
Fri, 4 Jun 2021 13:22:16 +0000 (4 22:22 +0900)
1  2 
test/t/bs_block.rb

@@@ -515,8 -514,13 +515,20 @@@ en
  
  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
++
++assert('BS Block 39') do
++  def iter
+     yield 1
+   end
+   assert_equal([1, 2, nil]) do
+     iter{|a, b=2, c|
+       [a, b, c]
+     }
+   end
+ end