Sha256: 9a54862f5f3f6415e363333f446bedc8b60cd5b6e88f316e90efbcac66a1bcb1
Contents?: true
Size: 468 Bytes
Versions: 1
Compression:
Stored size: 468 Bytes
Contents
require "spec_helper" require "hamster/set" describe Hamster::Set do describe "#sum" do [ [[], 0], [[2], 2], [[1, 3, 5, 7, 11], 27], ].each do |values, expected| describe "on #{values.inspect}" do before do original = Hamster.set(*values) @result = original.sum 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/sum_spec.rb |