pointfreeco / swift-custom-dump

A collection of tools for debugging, diffing, and testing your application's data structures.
MIT License
800 stars 89 forks source link

Print object identity in diff #29

Closed stephencelis closed 3 years ago

stephencelis commented 3 years ago

NSObjects are equatable by object identity by default, which can lead to diff returning a confusing string with no insertions/removals when all properties look the same, as brought up in this TCA discussion. This PR attempts to surface the object identity mismatch when everything else is the same.