Sha256: bea2a83fe553d190385a698bad48a3944c62b2b67cd4143642f52ca293a2f542
Contents?: true
Size: 586 Bytes
Versions: 1
Compression:
Stored size: 586 Bytes
Contents
require "spec_helper" require "hamster/set" describe Hamster::Set do describe "#inspect" do [ [[], "{}"], [["A"], "{\"A\"}"], [[DeterministicHash.new("A", 1), DeterministicHash.new("B", 2), DeterministicHash.new("C", 3)], "{\"A\", \"B\", \"C\"}"] ].each do |values, expected| describe "on #{values.inspect}" do before do original = Hamster.set(*values) @result = original.inspect end it "returns #{expected.inspect}" do @result.should == expected end 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/inspect_spec.rb |