Sha256: 6d87f1106b068f81e1f0ef5f5163b4bbfbc893a3f6f58b1030b70ccb63238ff4
Contents?: true
Size: 455 Bytes
Versions: 29
Compression:
Stored size: 455 Bytes
Contents
describe "Hash#each_value" do it "calls block once for each key, passing value" do r = [] h = {:a => -5, :b => -3, :c => -2, :d => -1, :e => -1} h.each_value { |v| r << v }.should equal(h) r.should == [-5, -3, -2, -1, -1] end it "processes values in the same order as values()" do values = [] h = {:a => -5, :b => -3, :c => -2, :d => -1, :e => -1} h.each_value { |v| values << v } values.should == h.values end end
Version data entries
29 entries across 29 versions & 1 rubygems