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

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