mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Update assert_take for zero size take.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user