Sha256: bf8ad23456d1f7897a93923d8309d0aa23da65894073b3c92bfeb321ce2134cf
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require "spec_helper" require "hamster/set" describe Hamster::Set do describe ".set" do describe "with no values" do it "returns the empty set" do Hamster.set.should equal(Hamster::EmptySet) end end describe "with a list of values" do before do @set = Hamster.set("A", "B", "C") end it "is equivalent to repeatedly using #add" do @set.should == Hamster.set.add("A").add("B").add("C") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hamster-1.0.1.pre.rc.1 | spec/hamster/set/construction_spec.rb |