aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/library/set/sortedset/empty_spec.rb
blob: 50d046e4c0368a8a40ec6f364c78dc576571c4b8 (plain)
1
2
3
4
5
6
7
8
9
10
require File.expand_path('../../../../spec_helper', __FILE__)
require 'set'

describe "SortedSet#empty?" do
  it "returns true if self is empty" do
    SortedSet[].empty?.should be_true
    SortedSet[1].empty?.should be_false
    SortedSet[1,2,3].empty?.should be_false
  end
end