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-4.0.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.5.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.4.2 spec/ios/nsorderedset_spec.rb
sugarcube-3.4.1 spec/ios/nsorderedset_spec.rb
sugarcube-3.4.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.7 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.6 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.5 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.4 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.3 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.2 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.1 spec/ios/nsorderedset_spec.rb
sugarcube-3.3.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.2.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.1.1 spec/ios/nsorderedset_spec.rb
sugarcube-3.1.0 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.8 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.7 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.6 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.5 spec/ios/nsorderedset_spec.rb