test90.cxx 436 B

1234567891011121314151617181920212223
  1. #include <pqxx/connection>
  2. #include "test_helpers.hxx"
  3. // Test program for libpqxx. Test adorn_name.
  4. namespace
  5. {
  6. void test_090()
  7. {
  8. pqxx::connection conn;
  9. // Test connection's adorn_name() function for uniqueness
  10. std::string const nametest{"basename"};
  11. PQXX_CHECK_NOT_EQUAL(
  12. conn.adorn_name(nametest), conn.adorn_name(nametest),
  13. "\"Unique\" names are not unique.");
  14. }
  15. } // namespace
  16. PQXX_REGISTER_TEST(test_090);