blob: 5cb998f5f7c6e73eae9db7c3a159471200e4de9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# -*- encoding: us-ascii -*-
require_relative '../../../spec_helper'
require_relative 'shared/collect'
describe "Enumerator::Lazy#map" do
it_behaves_like :enumerator_lazy_collect, :map
it "doesn't unwrap Arrays" do
Enumerator.new {|y| y.yield([1])}.lazy.to_a.should == [[1]]
end
end
|