From a0a43bf98a0229bbbd8a379d4d42aebeeec01d07 Mon Sep 17 00:00:00 2001 From: Crayon Date: Fri, 4 Nov 2022 10:29:38 -0400 Subject: [PATCH] Fix unit test --- tests/message.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/message.cpp b/tests/message.cpp index d4f4d2f..568f237 100644 --- a/tests/message.cpp +++ b/tests/message.cpp @@ -181,7 +181,7 @@ TEST_CASE("message equality non equal lhs empty", "[message]") TEST_CASE("message rebuild with size", "[message]") { - zmq::message_t msg(); + zmq::message_t msg; msg.rebuild(5) CHECK(msg.size() == 5); } @@ -189,7 +189,7 @@ TEST_CASE("message rebuild with size", "[message]") #if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL) TEST_CASE("message rebuild with string literal", "[message]") { - zmq::message_t hi_msg(); + zmq::message_t hi_msg; hi_msg.rebuild("Hi") REQUIRE(2u == hi_msg.size()); CHECK(0 == memcmp(data, hi_msg.data(), 2)); @@ -200,7 +200,7 @@ TEST_CASE("message rebuild with strings", "[message]") SECTION("string") { const std::string hi(data); - zmq::message_t hi_msg(); + zmq::message_t hi_msg; hi_msg.rebuild(hi) CHECK(2u == hi_msg.size()); CHECK(0 == memcmp(data, hi_msg.data(), 2)); @@ -209,7 +209,7 @@ TEST_CASE("message rebuild with strings", "[message]") SECTION("string_view") { const std::string_view hi(data); - zmq::message_t hi_msg(); + zmq::message_t hi_msg; hi_msg.rebuild(hi) CHECK(2u == hi_msg.size()); CHECK(0 == memcmp(data, hi_msg.data(), 2));