Sha256: f11534bdc700afe83e71b3d9cdfe4c0e690e9573ca955c4fa43e26c73fee0196
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require "spec_helper" require "hamster/set" describe Hamster::Set do [:size, :length].each do |method| describe "##{method}" do [ [[], 0], [["A"], 1], [%w[A B C], 3], ].each do |values, result| it "returns #{result} for #{values.inspect}" do Hamster.set(*values).send(method).should == result 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/size_spec.rb |