Sha256: dfc8dcf7d0930c1f2e44e223db1798d66d82dbf56479526a7f30a76f3018ee9f
Contents?: true
Size: 474 Bytes
Versions: 4
Compression:
Stored size: 474 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper') describe Hamster::Hash do [:size, :length].each do |method| describe "##{method}" do [ [[], 0], [["A" => "aye"], 1], [["A" => "bee", "B" => "bee", "C" => "see"], 3], ].each do |values, result| it "returns #{result} for #{values.inspect}" do Hamster.hash(*values).send(method).should == result end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hamster-0.1.14 | spec/hamster/hash/size_spec.rb |
hamster-0.1.13 | spec/hamster/hash/size_spec.rb |
hamster-0.1.12 | spec/hamster/hash/size_spec.rb |
hamster-0.1.11 | spec/hamster/hash/size_spec.rb |