add block argument test #2144

This commit is contained in:
mirichi
2014-04-28 13:49:50 +09:00
parent 220f3124b9
commit 670a457e06
+12
View File
@@ -512,3 +512,15 @@ assert('BS Block 37') do
end
end
assert('BS Block 38') do
def iter
yield 1
end
assert_equal([1, 2, nil]) do
iter{|a, b=2, c|
[a, b, c]
}
end
end