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-3.0.4 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.3 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.2 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.1 spec/ios/nsorderedset_spec.rb
sugarcube-3.0.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.12.3 spec/ios/nsorderedset_spec.rb
sugarcube-2.12.2 spec/ios/nsorderedset_spec.rb
sugarcube-2.12.1 spec/ios/nsorderedset_spec.rb
sugarcube-2.12.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.11.1 spec/ios/nsorderedset_spec.rb
sugarcube-2.11.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.10.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.9.1 spec/ios/nsorderedset_spec.rb
sugarcube-2.8.2 spec/ios/nsorderedset_spec.rb
sugarcube-2.8.1 spec/ios/nsorderedset_spec.rb
sugarcube-2.8.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.7.1 spec/ios/nsorderedset_spec.rb
sugarcube-2.7.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.6.0 spec/ios/nsorderedset_spec.rb
sugarcube-2.5.0 spec/ios/nsorderedset_spec.rb