Sha256: 315c1a3bae282092897d3e9133ad16d3ca04f99b52285440db7c01c8207c565e
Contents?: true
Size: 228 Bytes
Versions: 4
Compression:
Stored size: 228 Bytes
Contents
covers 'facets/enumerable/each_with_object' tests Enumerable do unit :each_with_object do r = Hash.new(0) a = [1,2,2,3] a.each_with_object(r){ |c, h| h[c] += 1 } r.assert == { 1=>1, 2=>2, 3=>1 } end end
Version data entries
4 entries across 4 versions & 1 rubygems