Use operator== instead of operator!= in NS_TEST_ASSERT_EQUAL
authorPavel Boyko <boyko@iitp.ru>
Mon Jul 13 09:07:02 2009 +0200 (8 months ago)
changeset 4698280e7729894c
parent 4697 258cf77942bc
child 4699 7555c9a0564b
Use operator== instead of operator!= in NS_TEST_ASSERT_EQUAL
src/core/test.h
     1.1 --- a/src/core/test.h	Fri Jul 10 11:56:35 2009 -0700
     1.2 +++ b/src/core/test.h	Mon Jul 13 09:07:02 2009 +0200
     1.3 @@ -115,7 +115,7 @@
     1.4  
     1.5  #define NS_TEST_ASSERT_EQUAL_FILELINE(got, expected, file, line)    \
     1.6    do {                                                              \
     1.7 -    if ((got) != (expected))                                        \
     1.8 +    if (! ((got) == (expected)))                                    \
     1.9        {                                                             \
    1.10          Failure () << file << ":" <<line                            \
    1.11                     << ": expected " << (expected)                   \