Skip to content

Commit ccc5dce

Browse files
committed
Improved test
1 parent 1abf840 commit ccc5dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pqxx_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void test_sparsevec_nnz(pqxx::connection &conn) {
103103
tx.exec("INSERT INTO items (sparse_embedding) VALUES ($1)", {embedding});
104104
assert(false);
105105
} catch (const pqxx::conversion_overrun& e) {
106-
assert(std::strcmp(e.what(), "sparsevec cannot have more than 16000 dimensions") == 0);
106+
assert(std::string_view(e.what()) == "sparsevec cannot have more than 16000 dimensions");
107107
}
108108
}
109109

0 commit comments

Comments
 (0)