blob: 45b6749e279f11f2bef84c07a4da5b5824442837 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require File.expand_path('../../../../spec_helper', __FILE__)
require 'set'
describe "SortedSet[]" do
it "returns a new SortedSet populated with the passed Objects" do
set = SortedSet[1, 2, 3]
set.instance_of?(SortedSet).should be_true
set.size.should eql(3)
set.should include(1)
set.should include(2)
set.should include(3)
end
end
|