Sha256: 320efcdebaca40c4f7ac8f34a625dac23d24ea43c8608054ded4ed738f7d7510

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

covers 'facets/enumerable/mash'

test_case Enumerable do

  method :mash do

    test "is an alias for #graph" do
      a = { :a => 1, :b => 2, :c => 3 }
      e = { :a => 2, :b => 3, :c => 4 }
      r = a.mash{ |k,v| {k => v+1} }
      r.assert == e
    end

  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
facets-glimmer-3.2.0 test/core/enumerable/test_mash.rb
facets-3.1.0 test/core/enumerable/test_mash.rb
facets-3.0.0 test/core/enumerable/test_mash.rb
facets-2.9.3 test/core/enumerable/test_mash.rb
facets-2.9.2 test/core/enumerable/test_mash.rb