Problem: no tests for socket_t ctor accepting enum socket_type

Solution: added test case
This commit is contained in:
Simon Giesecke
2018-04-03 12:04:23 +02:00
parent 1616c0fad2
commit 83f854869a
2 changed files with 18 additions and 1 deletions

View File

@@ -7,3 +7,10 @@ TEST(socket, create_destroy)
zmq::socket_t socket(context, ZMQ_ROUTER);
}
#ifdef ZMQ_CPP11
TEST(socket, create_by_enum_destroy)
{
zmq::context_t context;
zmq::socket_t socket(context, zmq::socket_type::router);
}
#endif