Sha256: 7a3f69c4d188bfd0e7494c6bd6cbaaf802e389767c6f753d54650aa18afc67dc

Contents?: true

Size: 345 Bytes

Versions: 3

Compression:

Stored size: 345 Bytes

Contents

require "spec_helper"
require "hamster/set"

describe Hamster::Set do
  describe "#to_set" do
    [
      [],
      ["A"],
      %w[A B C],
    ].each do |values|
      describe "on #{values.inspect}" do
        let(:set) { S[*values] }

        it "returns self" do
          set.to_set.should equal(set)
        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/set/to_set_spec.rb
hamster-3.0.0 spec/lib/hamster/set/to_set_spec.rb
hamster-2.0.0 spec/lib/hamster/set/to_set_spec.rb