Sha256: 6a9d7426192972ef03c6db3d3d4509f17515c99859ad8059064c154e6ffe8375
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
require "spec_helper" require "hamster/sorted_set" describe Hamster::SortedSet do describe "#min" do [ [[], nil], [["A"], "A"], [%w[Ichi Ni San], "Ichi"], [[1,2,3,4,5], 1], [[0, -0.0, 2.2, -4, -4.2], -4.2], ].each do |values, expected| context "on #{values.inspect}" do it "returns #{expected.inspect}" do SS[*values].min.should == expected end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems