summaryrefslogtreecommitdiff
path: root/spec/ruby/library/set/set_spec.rb
blob: 2a4edc6dfc63b4cfe6dc0eb4889d1592ad61580b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
require_relative '../../spec_helper'

describe 'Set' do
  ruby_version_is '3.2' do
    it 'is available without explicit requiring' do
      output = ruby_exe(<<~RUBY, options: '--disable-gems', args: '2>&1')
        puts Set.new([1, 2, 3])
      RUBY
      output.chomp.should == "#<Set: {1, 2, 3}>"
    end
  end
end