Sha256: 1f18921d482e7c6f5f11bf7caa860aaad4353bedb9aa954352b6ca0eb1ae523b

Contents?: true

Size: 283 Bytes

Versions: 74

Compression:

Stored size: 283 Bytes

Contents

describe "NSOrderedSet" do

  # NSOrderedSet keesp ordering
  it "should have a method #to_a" do
    [1,0].nsorderedset.to_a.should == [1,0]
  end
  
  # NSSet doesn't keep ordering. It's sorted.
  it "should have a method #to_a" do
    [1,0].nsset.to_a.should == [0,1]
  end
  
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
sugarcube-1.5.8 spec/nsorderedset_spec.rb
sugarcube-1.5.7 spec/nsorderedset_spec.rb
sugarcube-1.5.6 spec/nsorderedset_spec.rb
sugarcube-1.5.5 spec/nsorderedset_spec.rb
sugarcube-1.5.4 spec/nsorderedset_spec.rb
sugarcube-1.5.3 spec/nsorderedset_spec.rb
sugarcube-1.5.2 spec/nsorderedset_spec.rb
sugarcube-1.5.1 spec/nsorderedset_spec.rb
sugarcube-1.5.0 spec/nsorderedset_spec.rb
sugarcube-1.4.6 spec/nsorderedset_spec.rb
sugarcube-1.4.5 spec/nsorderedset_spec.rb
sugarcube-1.4.4 spec/nsorderedset_spec.rb
sugarcube-1.4.3 spec/nsorderedset_spec.rb
sugarcube-1.4.2 spec/nsorderedset_spec.rb