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

Add macros for ObjC object equality/inequality #303

Closed
GoogleCodeExporter opened this issue Jul 28, 2015 · 1 comment
Closed

Add macros for ObjC object equality/inequality #303

GoogleCodeExporter opened this issue Jul 28, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link
Contributor

It'd be very helpful for projects that use ObjC++ to be able to test equality 
using the |-[id<NSObject> isEqual:]| method. Currently, to do this, one does:

  EXPECT_TRUE([obj isEqual:foo]);

That produces less helpful output than

  EXPECT_NSEQ(obj, foo);

Because the latter could also print mismatch information using the 
|-description| method.

CL here: http://codereview.appspot.com/1743056

Original issue reported on code.google.com by rsesek@google.com on 4 Aug 2010 at 9:41

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

No branches or pull requests

1 participant