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

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/hamster-3.0.0/spec/lib/hamster/sorted_set/minimum_spec.rb
hamster-3.0.0 spec/lib/hamster/sorted_set/minimum_spec.rb
hamster-2.0.0 spec/lib/hamster/sorted_set/minimum_spec.rb