cedarbdd / cedar

BDD-style testing using Objective-C
http://groups.google.com/group/cedar-discuss
1.19k stars 140 forks source link

Improved failure messaging for Equals matcher #391

Open idoru opened 8 years ago

idoru commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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

idoru commented 8 years ago

I believe c2321e9 has now eliminated those leaks.