diff tests/src/server-join-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-join-command/main.cpp	Thu Dec 14 21:45:32 2017 +0100
+++ b/tests/src/server-join-command/main.cpp	Thu Dec 14 21:51:22 2017 +0100
@@ -102,9 +102,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)
@@ -126,9 +126,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)
@@ -150,9 +150,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)
@@ -174,9 +174,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)
@@ -198,9 +198,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()