summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-09-13 02:24:01 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-09-13 02:28:56 +0900
commitad4bdda074bb7aa452b17515ea7ad936674c9df1 (patch)
treeb9ff1c9652535797c9cb6674f63551915b027081
parentf5542b992731f4d1af1505837a71e782decab25f (diff)
downloadmruby-ad4bdda074bb7aa452b17515ea7ad936674c9df1.tar.gz
mruby-ad4bdda074bb7aa452b17515ea7ad936674c9df1.zip
Update `assert_take` for zero size take.
-rw-r--r--mrbgems/mruby-enumerator/test/enumerator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-enumerator/test/enumerator.rb b/mrbgems/mruby-enumerator/test/enumerator.rb
index 7cff49c3b..ecd6c4d65 100644
--- a/mrbgems/mruby-enumerator/test/enumerator.rb
+++ b/mrbgems/mruby-enumerator/test/enumerator.rb
@@ -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