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

ruby_version_is ""..."3.0" do
  require 'set'

  describe "SortedSet#inspect" do
    it "returns a String representation of self" do
      SortedSet[].inspect.should be_kind_of(String)
      SortedSet[1, 2, 3].inspect.should be_kind_of(String)
      SortedSet["1", "2", "3"].inspect.should be_kind_of(String)
    end
  end
end