Unverified Commit a997e41d authored by mirichi's avatar mirichi Committed by Yukihiro "Matz" Matsumoto

add block argument test #2144

parent 45dd6b14
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment