diff tests/src/server-notice-command/main.cpp @ 610:22b3cd6f991f

Tests: sed BOOST_ASSERT/BOOST_TEST
author David Demelier <markand@malikania.fr>
date Thu, 14 Dec 2017 21:51:22 +0100
parents 168c0e191eea
children
line wrap: on
line diff
--- a/tests/src/server-notice-command/main.cpp	Thu Dec 14 21:45:32 2017 +0100
+++ b/tests/src/server-notice-command/main.cpp	Thu Dec 14 21:51:22 2017 +0100
@@ -84,9 +84,9 @@
         return result;
     });
 
-    BOOST_ASSERT(result == server_error::invalid_identifier);
-    BOOST_ASSERT(message["error"].template get<int>() == server_error::invalid_identifier);
-    BOOST_ASSERT(message["errorCategory"].template get<std::string>() == "server");
+    BOOST_TEST(result == server_error::invalid_identifier);
+    BOOST_TEST(message["error"].template get<int>() == server_error::invalid_identifier);
+    BOOST_TEST(message["errorCategory"].template get<std::string>() == "server");
 }
 
 BOOST_AUTO_TEST_CASE(invalid_identifier_2)
@@ -109,9 +109,9 @@
         return result;
     });
 
-    BOOST_ASSERT(result == server_error::invalid_identifier);
-    BOOST_ASSERT(message["error"].template get<int>() == server_error::invalid_identifier);
-    BOOST_ASSERT(message["errorCategory"].template get<std::string>() == "server");
+    BOOST_TEST(result == server_error::invalid_identifier);
+    BOOST_TEST(message["error"].template get<int>() == server_error::invalid_identifier);
+    BOOST_TEST(message["errorCategory"].template get<std::string>() == "server");
 }
 
 BOOST_AUTO_TEST_CASE(invalid_channel_1)
@@ -134,9 +134,9 @@
         return result;
     });
 
-    BOOST_ASSERT(result == server_error::invalid_channel);
-    BOOST_ASSERT(message["error"].template get<int>() == server_error::invalid_channel);
-    BOOST_ASSERT(message["errorCategory"].template get<std::string>() == "server");
+    BOOST_TEST(result == server_error::invalid_channel);
+    BOOST_TEST(message["error"].template get<int>() == server_error::invalid_channel);
+    BOOST_TEST(message["errorCategory"].template get<std::string>() == "server");
 }
 
 BOOST_AUTO_TEST_CASE(invalid_channel_2)
@@ -159,9 +159,9 @@
         return result;
     });
 
-    BOOST_ASSERT(result == server_error::invalid_channel);
-    BOOST_ASSERT(message["error"].template get<int>() == server_error::invalid_channel);
-    BOOST_ASSERT(message["errorCategory"].template get<std::string>() == "server");
+    BOOST_TEST(result == server_error::invalid_channel);
+    BOOST_TEST(message["error"].template get<int>() == server_error::invalid_channel);
+    BOOST_TEST(message["errorCategory"].template get<std::string>() == "server");
 }
 
 BOOST_AUTO_TEST_CASE(not_found)
@@ -184,9 +184,9 @@
         return result;
     });
 
-    BOOST_ASSERT(result == server_error::not_found);
-    BOOST_ASSERT(message["error"].template get<int>() == server_error::not_found);
-    BOOST_ASSERT(message["errorCategory"].template get<std::string>() == "server");
+    BOOST_TEST(result == server_error::not_found);
+    BOOST_TEST(message["error"].template get<int>() == server_error::not_found);
+    BOOST_TEST(message["errorCategory"].template get<std::string>() == "server");
 }
 
 BOOST_AUTO_TEST_SUITE_END()