mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-22 08:02:09 +02:00
Problem: test file not correctly named
Solution: move and split example_add.cpp
This commit is contained in:
15
tests/context.cpp
Normal file
15
tests/context.cpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <zmq.hpp>
|
||||
|
||||
TEST(context, create_default_destroy)
|
||||
{
|
||||
zmq::context_t context;
|
||||
}
|
||||
|
||||
TEST(context, create_close)
|
||||
{
|
||||
zmq::context_t context;
|
||||
context.close();
|
||||
|
||||
ASSERT_EQ(NULL, (void*)context);
|
||||
}
|
||||
Reference in New Issue
Block a user