mirror of
https://github.com/zeromq/cppzmq.git
synced 2024-12-14 02:57:48 +01:00
83f854869a
Solution: added test case
17 lines
308 B
C++
17 lines
308 B
C++
#include <gtest/gtest.h>
|
|
#include <zmq.hpp>
|
|
|
|
TEST(socket, create_destroy)
|
|
{
|
|
zmq::context_t context;
|
|
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
|