@@ -124,8 +124,8 @@ void test_stream_to(pqxx::connection &conn) {
124124 stream.write_values (pgvector::Vector ({4 , 5 , 6 }));
125125 stream.complete ();
126126 pqxx::result res = tx.exec (" SELECT embedding FROM items ORDER BY id" );
127- assert_equal (res[0 ][0 ].as <std::string>(), std::string ( " [1,2,3]" ) );
128- assert_equal (res[1 ][0 ].as <std::string>(), std::string ( " [4,5,6]" ) );
127+ assert_equal (res[0 ][0 ].as <std::string>(), " [1,2,3]" );
128+ assert_equal (res[1 ][0 ].as <std::string>(), " [4,5,6]" );
129129}
130130
131131void test_precision (pqxx::connection &conn) {
@@ -140,8 +140,8 @@ void test_precision(pqxx::connection &conn) {
140140}
141141
142142void test_vector_to_string () {
143- assert_equal (pqxx::to_string (pgvector::Vector ({1 , 2 , 3 })), std::string ( " [1,2,3]" ) );
144- assert_equal (pqxx::to_string (pgvector::Vector ({-1.234567890123 })), std::string ( " [-1.2345679]" ) );
143+ assert_equal (pqxx::to_string (pgvector::Vector ({1 , 2 , 3 })), " [1,2,3]" );
144+ assert_equal (pqxx::to_string (pgvector::Vector ({-1.234567890123 })), " [-1.2345679]" );
145145
146146 assert_exception<pqxx::conversion_overrun>([] {
147147 auto unused = pqxx::to_string (pgvector::Vector (std::vector<float >(16001 )));
@@ -178,8 +178,8 @@ void test_vector_from_string() {
178178}
179179
180180void test_halfvec_to_string () {
181- assert_equal (pqxx::to_string (pgvector::HalfVector ({1 , 2 , 3 })), std::string ( " [1,2,3]" ) );
182- assert_equal (pqxx::to_string (pgvector::HalfVector ({-1.234567890123 })), std::string ( " [-1.2345679]" ) );
181+ assert_equal (pqxx::to_string (pgvector::HalfVector ({1 , 2 , 3 })), " [1,2,3]" );
182+ assert_equal (pqxx::to_string (pgvector::HalfVector ({-1.234567890123 })), " [-1.2345679]" );
183183
184184 assert_exception<pqxx::conversion_overrun>([] {
185185 auto unused = pqxx::to_string (pgvector::HalfVector (std::vector<float >(16001 )));
@@ -216,9 +216,9 @@ void test_halfvec_from_string() {
216216}
217217
218218void test_sparsevec_to_string () {
219- assert_equal (pqxx::to_string (pgvector::SparseVector ({1 , 0 , 2 , 0 , 3 , 0 })), std::string ( " {1:1,3:2,5:3}/6" ) );
219+ assert_equal (pqxx::to_string (pgvector::SparseVector ({1 , 0 , 2 , 0 , 3 , 0 })), " {1:1,3:2,5:3}/6" );
220220 std::unordered_map<int , float > map = {{999999999 , -1.234567890123 }};
221- assert_equal (pqxx::to_string (pgvector::SparseVector (map, 1000000000 )), std::string ( " {1000000000:-1.2345679}/1000000000" ) );
221+ assert_equal (pqxx::to_string (pgvector::SparseVector (map, 1000000000 )), " {1000000000:-1.2345679}/1000000000" );
222222}
223223
224224void test_sparsevec_from_string () {
0 commit comments