Sha256: f069817eccd2481588beb24352eb32d47186cfb9417c3eb723ff55fcff2eba2a

Contents?: true

Size: 323 Bytes

Versions: 23

Compression:

Stored size: 323 Bytes

Contents

require_relative '../spec_helper'

describe 'Maps' do
  it 'should allow maps to be merged' do
    expect(merge(empty)).to eq({})
    expect(merge(sequence({1 => 2}, {3 => 4, 5 => 6}))).to eq({1 => 2, 3 => 4, 5 => 6})
    expect(merge(sequence({1 => 2, 3 => 3}, {3 => 4, 5 => 6}))).to eq({1 => 2, 3 => 4, 5 => 6})
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
totally_lazy-0.1.62 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.61 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.60 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.59 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.58 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.57 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.56 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.55 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.54 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.53 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.52 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.51 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.50 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.49 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.48 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.47 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.46 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.45 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.44 spec/totally_lazy/maps_spec.rb
totally_lazy-0.1.43 spec/totally_lazy/maps_spec.rb