Merge branch 'test' of https://github.com/mirichi/mruby into mirichi-test

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-06-04 22:22:16 +09:00
+12
View File
@@ -520,3 +520,15 @@ assert('BS Block 38') do
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