lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [5980] Resolve failure noted 20141010T1713Z


From: Greg Chicares
Subject: [lmi-commits] [5980] Resolve failure noted 20141010T1713Z
Date: Fri, 10 Oct 2014 17:22:40 +0000

Revision: 5980
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=5980
Author:   chicares
Date:     2014-10-10 17:22:39 +0000 (Fri, 10 Oct 2014)
Log Message:
-----------
Resolve failure noted 20141010T1713Z

Modified Paths:
--------------
    lmi/trunk/ChangeLog
    lmi/trunk/assert_lmi.hpp
    lmi/trunk/assert_lmi_test.cpp

Modified: lmi/trunk/ChangeLog
===================================================================
--- lmi/trunk/ChangeLog 2014-10-10 17:13:30 UTC (rev 5979)
+++ lmi/trunk/ChangeLog 2014-10-10 17:22:39 UTC (rev 5980)
@@ -34293,3 +34293,9 @@
 Add some new macros, with a unit test that fails to compile. See:
   http://lists.nongnu.org/archive/html/lmi/2014-10/msg00023.html
 
+20141010T1722Z <address@hidden> [533]
+
+  assert_lmi.hpp
+  assert_lmi_test.cpp
+Resolve failure noted 20141010T1713Z.
+

Modified: lmi/trunk/assert_lmi.hpp
===================================================================
--- lmi/trunk/assert_lmi.hpp    2014-10-10 17:13:30 UTC (rev 5979)
+++ lmi/trunk/assert_lmi.hpp    2014-10-10 17:22:39 UTC (rev 5980)
@@ -84,10 +84,10 @@
 
 /// This LMI_ASSERT variant displays both its parameters if unequal.
 
-#define LMI_ASSERT_EQUAL(observed,expected)                     \
-    LMI_ASSERT_WITH_MSG                                         \
-        (observed == expected                                   \
-        ,"expected " << expected << " vs observed " << observed \
+#define LMI_ASSERT_EQUAL(observed,expected)                         \
+    LMI_ASSERT_WITH_MSG                                             \
+        ((observed) == (expected)                                   \
+        ,"expected " << (expected) << " vs observed " << (observed) \
         )
 
 #endif // assert_lmi_hpp

Modified: lmi/trunk/assert_lmi_test.cpp
===================================================================
--- lmi/trunk/assert_lmi_test.cpp       2014-10-10 17:13:30 UTC (rev 5979)
+++ lmi/trunk/assert_lmi_test.cpp       2014-10-10 17:22:39 UTC (rev 5980)
@@ -68,7 +68,7 @@
     BOOST_TEST_THROW
         (LMI_ASSERT_EQUAL(not_true,true)
         ,std::runtime_error
-        ,"Assertion 'not_true == true' failed\n(expected 1 vs observed 0)." 
LMI_LOCATION
+        ,"Assertion '(not_true) == (true)' failed\n(expected 1 vs observed 
0)." LMI_LOCATION
         );
 
     // It does seem wrong that this fails to compile:




reply via email to

[Prev in Thread] Current Thread [Next in Thread]