Sha256: 955d3de16cc977128684d1a9b72667012913993743160c48e04c4c14ea292ebe
Contents?: true
Size: 337 Bytes
Versions: 29
Compression:
Stored size: 337 Bytes
Contents
describe "Hash#has_value?" do it "returns true if the value exists in the hash" do {:a => :b}.has_value?(:a).should == false {1 => 2}.has_value?(2).should == true h = Hash.new 5 h.has_value?(5).should == false end it "uses == semantics for comparing values" do {5 => 2.0}.has_value?(2).should == true end end
Version data entries
29 entries across 29 versions & 1 rubygems