mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-05 08:45:30 +02:00
Problem: no test cases
Solution: added a few initial test cases
This commit is contained in:
parent
7db13d356a
commit
b737b9f1de
@ -1,9 +1,21 @@
|
|||||||
#include "gtest/gtest.h"
|
#include <gtest/gtest.h>
|
||||||
#include <zmq.hpp>
|
#include <zmq.hpp>
|
||||||
|
|
||||||
TEST(create_context, add)
|
TEST(context, create_default_destroy)
|
||||||
{
|
{
|
||||||
zmq::context_t context;
|
zmq::context_t context;
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST(context, create_close)
|
||||||
|
{
|
||||||
|
zmq::context_t context;
|
||||||
|
context.close();
|
||||||
|
|
||||||
|
ASSERT_EQ(NULL, (void*)context);
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST(socket, create_destroy)
|
||||||
|
{
|
||||||
|
zmq::context_t context;
|
||||||
|
zmq::socket_t socket(context, ZMQ_ROUTER);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user