mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-03-01 10:57:59 +01:00

For header only library like cppzmq, whitespace style inherited from libzmq is too restrictive. Solution: relaxing whitespace before parens from always to in control statements only, increased max column width from 80 to 85 and removing requirement of whitespace after template keyword.
16 lines
237 B
C++
16 lines
237 B
C++
#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);
|
|
}
|