lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [6593] Reformat


From: gchicares
Subject: [lmi-commits] [6593] Reformat
Date: Mon, 16 May 2016 16:17:40 +0000 (UTC)

Revision: 6593
          http://svn.sv.gnu.org/viewvc/?view=rev&root=lmi&revision=6593
Author:   chicares
Date:     2016-05-16 16:17:40 +0000 (Mon, 16 May 2016)
Log Message:
-----------
Reformat

Modified Paths:
--------------
    lmi/trunk/cpp_main.cpp
    lmi/trunk/test_tools.hpp

Modified: lmi/trunk/cpp_main.cpp
===================================================================
--- lmi/trunk/cpp_main.cpp      2016-05-16 16:08:18 UTC (rev 6592)
+++ lmi/trunk/cpp_main.cpp      2016-05-16 16:17:40 UTC (rev 6593)
@@ -67,7 +67,7 @@
 #include "getopt.hpp"
 #include "license.hpp"
 
-#include <cstdlib>  // std::free()
+#include <cstdlib>                      // std::free()
 #include <iostream>
 
 #if defined __MINGW32__

Modified: lmi/trunk/test_tools.hpp
===================================================================
--- lmi/trunk/test_tools.hpp    2016-05-16 16:08:18 UTC (rev 6592)
+++ lmi/trunk/test_tools.hpp    2016-05-16 16:17:40 UTC (rev 6593)
@@ -63,7 +63,7 @@
 
 #include "config.hpp"
 
-#include <cstdlib> // EXIT_SUCCESS, EXIT_FAILURE
+#include <cstdlib>                      // EXIT_SUCCESS, EXIT_FAILURE
 #include <exception>
 #include <ostream>
 #include <string>
@@ -92,11 +92,11 @@
 
 // Relational macros require their arguments to be streamable.
 
-#define BOOST_TEST_EQUAL(a,b) \
-    BOOST_TEST_RELATION(a,==,b)  \
+#define BOOST_TEST_EQUAL(a,b)   \
+    BOOST_TEST_RELATION(a,==,b) \
 
 #define BOOST_TEST_UNEQUAL(a,b) \
-    BOOST_TEST_RELATION(a,!=,b)  \
+    BOOST_TEST_RELATION(a,!=,b) \
 
 #define BOOST_TEST_RELATION(a,op,b)                      \
     if((a) op (b))                                       \
@@ -152,10 +152,7 @@
         }                                                     \
     catch(std::exception const& e)                            \
         {                                                     \
-        if                                                    \
-            (   typeid(e)                                     \
-            !=  typeid(TYPE)                                  \
-            )                                                 \
+        if(typeid(e) != typeid(TYPE))                         \
             {                                                 \
             lmi_test::error_stream()                          \
                 << "Caught exception of type\n    '"          \
@@ -195,28 +192,28 @@
             }                                                 \
         }                                                     \
 
-#define INVOKE_BOOST_TEST(exp,file,line)  \
-    if(!(exp))                            \
-        {                                 \
-        lmi_test::record_error();         \
-        lmi_test::error_stream()          \
-            << "\n**** test failed: "     \
-            << (exp)                      \
-            << "\n[invoked from "         \
-            << "file " << (file) << ", "  \
-            << "line: " << (line)         \
-            << "]"                        \
-            << BOOST_TEST_FLUSH           \
-            ;                             \
-        }                                 \
-    else                                  \
-        lmi_test::record_success();       \
+#define INVOKE_BOOST_TEST(exp,file,line) \
+    if(!(exp))                           \
+        {                                \
+        lmi_test::record_error();        \
+        lmi_test::error_stream()         \
+            << "\n**** test failed: "    \
+            << (exp)                     \
+            << "\n[invoked from "        \
+            << "file " << (file) << ", " \
+            << "line: " << (line)        \
+            << "]"                       \
+            << BOOST_TEST_FLUSH          \
+            ;                            \
+        }                                \
+    else                                 \
+        lmi_test::record_success();      \
 
-#define INVOKE_BOOST_TEST_EQUAL(a,b,file,line) \
-    INVOKE_BOOST_TEST_RELATION(a,==,b,file,line)  \
+#define INVOKE_BOOST_TEST_EQUAL(a,b,file,line)   \
+    INVOKE_BOOST_TEST_RELATION(a,==,b,file,line) \
 
 #define INVOKE_BOOST_TEST_UNEQUAL(a,b,file,line) \
-    INVOKE_BOOST_TEST_RELATION(a,!=,b,file,line)  \
+    INVOKE_BOOST_TEST_RELATION(a,!=,b,file,line) \
 
 #define INVOKE_BOOST_TEST_RELATION(a,op,b,file,line)     \
     if((a) op (b))                                       \
@@ -266,11 +263,11 @@
 
     std::ostream& error_stream();
 
+    // Increment test_tools_successes counter.
     void record_success();
-    // Effect: increment test_tools_successes counter.
 
+    // Increment test_tools_errors counter.
     void record_error();
-    // Effect: increment test_tools_errors counter.
 } // namespace lmi_test
 
 // For convenience, include lower-level layers. The original boost




reply via email to

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