Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved failure messaging for Equals matcher #391

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

idoru
Copy link
Contributor

@idoru idoru commented Apr 29, 2016

If two objects fail to match Equal but have identical -description,
Cedar will use the -(NSString *)cdr_explicitDescription instead, if
they respond to that selector.

Initial support is provided on NSArray,NSDictionary,NSSet,NSOrderedSet
and these implementations will annotate the collection members with
their class names.

@briancroom
Copy link
Contributor

Just had a quick look at this. Seems very nice! I'm also happy to see there's no templating involved. 😀

One potential issue I see is that the new implementation files are presumably being built with MRC, so I think there are some leaks in there?

@idoru
Copy link
Contributor Author

idoru commented Apr 29, 2016

Good catch @briancroom; I'l fix that shortly.

If two objects fail to match Equal but have identical -description,
Cedar will use the -(NSString *)cdr_explicitDescription instead, if
they respond to that selector.

Initial support is provided on NSArray,NSDictionary,NSSet,NSOrderedSet
and these implementations will annotate the collection members with
their class names.
@idoru idoru force-pushed the disambiguate-equal-matcher-collection-failures branch from b80bcee to c2321e9 Compare April 29, 2016 23:29
@idoru
Copy link
Contributor Author

idoru commented Apr 29, 2016

I believe c2321e9 has now eliminated those leaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants