Update assert_take for zero size take.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-09-13 02:24:01 +09:00
parent f5542b9927
commit ad4bdda074
+1 -1
View File
@@ -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