Skip to content
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.

Don’t use XCTAssertEqual for NSIndexPath equivalence. #268

Conversation

cerihughes
Copy link
Contributor

@cerihughes cerihughes commented Jan 3, 2017

While we decide the best way to assert for object equivalence over at #259, we should fix the cases that are causing tests to fail on 32-bit systems (i.e. the NSIndexPath case).

For info, using instance equality (i.e. == ) on 2 "equivalent" instances will work on 64 bit architectures (with tagged pointers) but not on 32 bit architectures.

@cerihughes
Copy link
Contributor Author

@spotify/objc-dev

@spotify-ci-bot
Copy link

spotify-ci-bot commented Jan 3, 2017

3 Messages
📖 Executed 339 tests, with 0 failures (0 unexpected) in 7.193 (8.715) seconds
📖 Executed 336 tests, with 0 failures (0 unexpected) in 7.273 (8.405) seconds
📖 Executed 9 tests, with 0 failures (0 unexpected) in 152.575 (152.601) seconds

Generated by 🚫 danger

@codecov-io
Copy link

Current coverage is 93.48% (diff: 100%)

Merging #268 into master will increase coverage by 0.05%

@@             master       #268   diff @@
==========================================
  Files            72         72          
  Lines          5019       5019          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           4689       4692     +3   
+ Misses          330        327     -3   
  Partials          0          0          

Powered by Codecov. Last update c707533...a7e1144

Copy link
Contributor

@ynmehel ynmehel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dalef84
Copy link
Contributor

dalef84 commented Jan 3, 2017

👍

@cerihughes cerihughes merged commit 8a02a62 into spotify:master Jan 3, 2017
@cerihughes cerihughes deleted the use-XCTAssertEqualObjects-for-index-paths branch January 3, 2017 12:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
5 participants