@@ -26,7 +26,7 @@ TEST_CASE("Store and retrieve properties (memory only)")
2626
2727 REQUIRE (properties.get_string (" foo" , " baz" ) == " bar" );
2828 REQUIRE (properties.get_string (" something" , " baz" ) == " baz" );
29- REQUIRE (properties.get_string (" empty" , " baz" ) == " " );
29+ REQUIRE (properties.get_string (" empty" , " baz" ). empty () );
3030 REQUIRE_THROWS (properties.get_int (" foo" , 1 ));
3131 REQUIRE_THROWS (properties.get_bool (" foo" , true ));
3232
@@ -45,7 +45,7 @@ TEST_CASE("Store and retrieve properties (memory only)")
4545TEST_CASE (" Store and retrieve properties (with database)" )
4646{
4747 for (std::string const schema : {" " , " middleschema" }) {
48- testing::pg::tempdb_t db;
48+ testing::pg::tempdb_t const db;
4949 auto conn = db.connect ();
5050 if (!schema.empty ()) {
5151 conn.exec (" CREATE SCHEMA IF NOT EXISTS {};" , schema);
@@ -82,7 +82,7 @@ TEST_CASE("Store and retrieve properties (with database)")
8282
8383 REQUIRE (properties.get_string (" foo" , " baz" ) == " bar" );
8484 REQUIRE (properties.get_string (" something" , " baz" ) == " baz" );
85- REQUIRE (properties.get_string (" empty" , " baz" ) == " " );
85+ REQUIRE (properties.get_string (" empty" , " baz" ). empty () );
8686 REQUIRE_THROWS (properties.get_int (" foo" , 1 ));
8787 REQUIRE_THROWS (properties.get_bool (" foo" , true ));
8888
@@ -102,7 +102,7 @@ TEST_CASE("Store and retrieve properties (with database)")
102102
103103TEST_CASE (" Update existing properties in database" )
104104{
105- testing::pg::tempdb_t db;
105+ testing::pg::tempdb_t const db;
106106 auto conn = db.connect ();
107107
108108 {
@@ -146,7 +146,7 @@ TEST_CASE("Update existing properties in database")
146146
147147TEST_CASE (" Load returns false if there are no properties in database" )
148148{
149- testing::pg::tempdb_t db;
149+ testing::pg::tempdb_t const db;
150150 auto conn = db.connect ();
151151 init_database_capabilities (conn);
152152
0 commit comments