Sha256: ecd313fdf242bcc60a0541de29e36a87b9f0e21ef9d79effcc72f8bd1c1f0884
Contents?: true
Size: 449 Bytes
Versions: 135
Compression:
Stored size: 449 Bytes
Contents
describe :hash_value_p, :shared => true do it "returns true if the value exists in the hash" do new_hash(:a => :b).send(@method, :a).should == false new_hash(1 => 2).send(@method, 2).should == true h = new_hash 5 h.send(@method, 5).should == false h = new_hash { 5 } h.send(@method, 5).should == false end it "uses == semantics for comparing values" do new_hash(5 => 2.0).send(@method, 2).should == true end end
Version data entries
135 entries across 135 versions & 2 rubygems