Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/Simple-WebSocket-Server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreidheim <eidheim@gmail.com>2020-01-19 00:17:13 +0300
committereidheim <eidheim@gmail.com>2020-01-19 00:17:13 +0300
commit656fd6fa1fb8eef1f4613bf1cb025f34d6e343f9 (patch)
treeec6399bccef25195b657529d1abe81ffd443273f
parent018fc740414638b59027d2b371bf9fc57dddedc6 (diff)
Added test that checks the content of second string() calls
-rw-r--r--tests/io_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/io_test.cpp b/tests/io_test.cpp
index e056872..c1f797e 100644
--- a/tests/io_test.cpp
+++ b/tests/io_test.cpp
@@ -19,6 +19,7 @@ int main() {
echo.on_message = [&server_callback_count](shared_ptr<WsServer::Connection> connection, shared_ptr<WsServer::InMessage> in_message) {
auto in_message_str = in_message->string();
ASSERT(in_message_str == "Hello");
+ ASSERT(in_message->string() == "Hello");
++server_callback_count;
connection->send(in_message_str, [](const SimpleWeb::error_code &ec) {
@@ -90,6 +91,7 @@ int main() {
client.on_message = [&](shared_ptr<WsClient::Connection> connection, shared_ptr<WsClient::InMessage> in_message) {
ASSERT(in_message->string() == "Hello");
+ ASSERT(in_message->string() == "Hello");
++client_callback_count;