diff options
Diffstat (limited to 'spec/ruby/library/set/empty_spec.rb')
-rw-r--r-- | spec/ruby/library/set/empty_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/library/set/empty_spec.rb b/spec/ruby/library/set/empty_spec.rb new file mode 100644 index 0000000000..044d58727c --- /dev/null +++ b/spec/ruby/library/set/empty_spec.rb @@ -0,0 +1,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 |