Use operator== instead of operator!= in NS_TEST_ASSERT_EQUAL
authorPavel Boyko <boyko@iitp.ru>
Mon, 13 Jul 2009 09:07:02 +0200
changeset 4678 280e7729894c
parent 4677 258cf77942bc
child 4679 7555c9a0564b
Use operator== instead of operator!= in NS_TEST_ASSERT_EQUAL
src/core/test.h
--- a/src/core/test.h	Fri Jul 10 11:56:35 2009 -0700
+++ b/src/core/test.h	Mon Jul 13 09:07:02 2009 +0200
@@ -115,7 +115,7 @@
 
 #define NS_TEST_ASSERT_EQUAL_FILELINE(got, expected, file, line)    \
   do {                                                              \
-    if ((got) != (expected))                                        \
+    if (! ((got) == (expected)))                                    \
       {                                                             \
         Failure () << file << ":" <<line                            \
                    << ": expected " << (expected)                   \