blob: d5550898728f2c5af679cf854836cf990e0f24b4 (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../../../spec_helper'
describe "Enumerator::Lazy#chunk_while" do
it "works with an infinite enumerable" do
s = 0..Float::INFINITY
s.lazy.chunk_while { |a, b| false }.first(100).should ==
s.first(100).chunk_while { |a, b| false }.to_a
end
end
|