We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c70109 commit faf4352Copy full SHA for faf4352
1 file changed
test/pqxx_test.cpp
@@ -280,6 +280,10 @@ void test_sparsevec_from_string() {
280
auto _ = pqxx::from_string<pgvector::SparseVector>("{2:1}/1");
281
}, "sparsevec index out of bounds");
282
283
+ assert_exception<pqxx::conversion_error>([] {
284
+ auto _ = pqxx::from_string<pgvector::SparseVector>("{1:1}/0");
285
+ }, "sparsevec index out of bounds");
286
+
287
assert_exception<pqxx::conversion_error>([] {
288
auto _ = pqxx::from_string<pgvector::SparseVector>("{1:4e38}/1");
289
}, float_error("Could not convert '4e38' to float: Value out of range."));
0 commit comments