Update `assert_take` for zero size take.

parent f5542b99
......@@ -13,7 +13,7 @@ def assert_take(exp, enumerator)
result << v
n -= 1
break if n == 0
end
end if n > 0
assert_equal exp, result
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