1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/ruby/test_lazy_enumerator.rb: test for [Bug #14082]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-11-05 23:27:46 +00:00
parent dcb8a22f26
commit 6c1f11592c

View file

@ -501,6 +501,13 @@ EOS
assert_equal Float::INFINITY, loop.lazy.cycle.size
assert_equal nil, lazy.select{}.cycle(4).size
assert_equal nil, lazy.select{}.cycle.size
class << (obj = Object.new)
def each; end
def size; 0; end
include Enumerable
end
assert_equal 0, obj.lazy.cycle.size
end
def test_map_zip