Sha256: 4c01ec1237214999f449dfcfac9e72fa66bf049a4fc51becfe147b4b61009f37

Contents?: true

Size: 301 Bytes

Versions: 14

Compression:

Stored size: 301 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe 'Maps' do

  it 'should return a sequence of maps as a merged map' do
    expect(Maps.merge(sequence(:a,2,:b,4).to_maps)).to eq({a:2,b:4})
    expect(Maps.merge(sequence(1,2,3,4).to_maps(false))).to eq({1=>2,3=>4})
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
totally_lazy-0.0.20 spec/util_spec.rb
totally_lazy-0.0.19 spec/util_spec.rb
totally_lazy-0.0.18 spec/util_spec.rb
totally_lazy-0.0.16 spec/util_spec.rb
totally_lazy-0.0.15 spec/util_spec.rb
totally_lazy-0.0.14 spec/util_spec.rb
totally_lazy-0.0.13 spec/util_spec.rb
totally_lazy-0.0.12 spec/util_spec.rb
totally_lazy-0.0.11 spec/util_spec.rb
totally_lazy-0.0.10 spec/util_spec.rb
totally_lazy-0.0.9 spec/util_spec.rb
totally_lazy-0.0.8 spec/util_spec.rb
totally_lazy-0.0.7 spec/util_spec.rb
totally_lazy-0.0.6 spec/util_spec.rb