Bug #11933 ยป test-lazy-take.patch
test/ruby/test_lazy_enumerator.rb | ||
---|---|---|
assert_equal(nil, a.current)
|
||
end
|
||
def test_take_bad_arg
|
||
a = Step.new(1..10)
|
||
assert_raise(ArgumentError) { a.lazy.take(-1) }
|
||
end
|
||
def test_take_recycle
|
||
bug6428 = '[ruby-dev:45634]'
|
||
a = Step.new(1..10)
|