mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-28 16:58:51 +00:00
24 lines
436 B
C++
24 lines
436 B
C++
#include <pqxx/connection>
|
|
|
|
#include "test_helpers.hxx"
|
|
|
|
// Test program for libpqxx. Test adorn_name.
|
|
|
|
namespace
|
|
{
|
|
void test_090()
|
|
{
|
|
pqxx::connection conn;
|
|
|
|
// Test connection's adorn_name() function for uniqueness
|
|
std::string const nametest{"basename"};
|
|
|
|
PQXX_CHECK_NOT_EQUAL(
|
|
conn.adorn_name(nametest), conn.adorn_name(nametest),
|
|
"\"Unique\" names are not unique.");
|
|
}
|
|
} // namespace
|
|
|
|
|
|
PQXX_REGISTER_TEST(test_090);
|