Finding exact difference between 2 instances



Have you ever written tests? Usually, they use equality asserts, e.g. XCTAssertEqual, what happens if the object isn’t equal? Xcode throws a wall of text at you:

This forces you to manually scan the text and try to figure out exactly whats wrong, what if instead you could just learn which property is different?


If you found this article interesting, consider retweeting it and letting me know on twitter you liked it, it motivates me to write more.