@@ -41,7 +41,7 @@ void test_vector(pqxx::connection &conn) {
4141 assert_equal (res.size (), 3 );
4242 assert_equal (res[0 ][0 ].as <pgvector::Vector>(), embedding2);
4343 assert_equal (res[1 ][0 ].as <pgvector::Vector>(), embedding);
44- assert_true (! res[2 ][0 ].as <std::optional<pgvector::Vector>>().has_value ());
44+ assert_equal ( res[2 ][0 ].as <std::optional<pgvector::Vector>>().has_value (), false );
4545}
4646
4747void test_halfvec (pqxx::connection &conn) {
@@ -57,7 +57,7 @@ void test_halfvec(pqxx::connection &conn) {
5757 assert_equal (res.size (), 3 );
5858 assert_equal (res[0 ][0 ].as <pgvector::HalfVector>(), embedding2);
5959 assert_equal (res[1 ][0 ].as <pgvector::HalfVector>(), embedding);
60- assert_true (! res[2 ][0 ].as <std::optional<pgvector::HalfVector>>().has_value ());
60+ assert_equal ( res[2 ][0 ].as <std::optional<pgvector::HalfVector>>().has_value (), false );
6161}
6262
6363void test_bit (pqxx::connection &conn) {
@@ -72,7 +72,7 @@ void test_bit(pqxx::connection &conn) {
7272 assert_equal (res.size (), 3 );
7373 assert_equal (res[0 ][0 ].as <std::string>(), embedding2);
7474 assert_equal (res[1 ][0 ].as <std::string>(), embedding);
75- assert_true (! res[2 ][0 ].as <std::optional<std::string>>().has_value ());
75+ assert_equal ( res[2 ][0 ].as <std::optional<std::string>>().has_value (), false );
7676}
7777
7878void test_sparsevec (pqxx::connection &conn) {
@@ -87,7 +87,7 @@ void test_sparsevec(pqxx::connection &conn) {
8787 assert_equal (res.size (), 3 );
8888 assert_equal (res[0 ][0 ].as <pgvector::SparseVector>(), embedding2);
8989 assert_equal (res[1 ][0 ].as <pgvector::SparseVector>(), embedding);
90- assert_true (! res[2 ][0 ].as <std::optional<pgvector::SparseVector>>().has_value ());
90+ assert_equal ( res[2 ][0 ].as <std::optional<pgvector::SparseVector>>().has_value (), false );
9191}
9292
9393void test_sparsevec_nnz (pqxx::connection &conn) {
0 commit comments