summaryrefslogtreecommitdiff
path: root/spec/ruby/core/set/empty_spec.rb
blob: 4b55658e20fa9c581119d6733daf3e16d28fbe2c (plain)
1
2
3
4
5
6
7
8
9
require_relative '../../spec_helper'

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