We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c341dc1 commit ec86476Copy full SHA for ec86476
tests/message.cpp
@@ -187,6 +187,14 @@ TEST_CASE("message rebuild with size", "[message]")
187
}
188
189
#if defined(ZMQ_CPP11) && !defined(ZMQ_CPP11_PARTIAL)
190
+TEST_CASE("message rebuild with string literal", "[message]")
191
+{
192
+ zmq::message_t hi_msg();
193
+ hi_msg.rebuild("Hi")
194
+ REQUIRE(2u == hi_msg.size());
195
+ CHECK(0 == memcmp(data, hi_msg.data(), 2));
196
+}
197
+
198
TEST_CASE("message rebuild with strings", "[message]")
199
{
200
SECTION("string")
0 commit comments