Sha256: 177bae2bd3c9bf55525850ba411d050e6bfc37b2ad7deb9f73182d1e851b2fc5

Contents?: true

Size: 401 Bytes

Versions: 3

Compression:

Stored size: 401 Bytes

Contents

require "spec_helper"
require "hamster/sorted_set"

describe Hamster::SortedSet do
  describe "#first" do
    [
      [[], nil],
      [["A"], "A"],
      [%w[A B C], "A"],
      [%w[Z Y X], "X"]
    ].each do |values, expected|
      context "on #{values.inspect}" do
        it "returns #{expected.inspect}" do
          SS[*values].first.should eql(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/first_spec.rb
hamster-3.0.0 spec/lib/hamster/sorted_set/first_spec.rb
hamster-2.0.0 spec/lib/hamster/sorted_set/first_spec.rb