[Tile-serving] [openstreetmap/osm2pgsql] Add more way tests for flex output (#1249)

Jochen Topf notifications at github.com
Thu Jul 9 19:24:09 UTC 2020


@joto commented on this pull request.



> +}
+
+TEST_CASE("change invalid geom to valid geom")
+{
+    options_t options = testing::opt_t().slim().flex(conf_file);
+
+    testing::data_t data{tdata};
+    data.add({"w10 v1 dV Tt1=yes,t2=yes,tboth=yes Nn10",
+              "r30 v1 dV Tt=ag Mw10 at mark,w11@,w12 at mark,w13@,w14 at mark"});
+
+    REQUIRE_NOTHROW(db.run_import(options, data()));
+
+    auto conn = db.db().connect();
+
+    CHECK(1 == conn.get_count("osm2pgsql_test_t1"));
+    CHECK(1 == conn.get_count("osm2pgsql_test_t2"));

i have added some missing tests for t2 relation. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/1249#discussion_r452439389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200709/41d75506/attachment-0001.htm>


More information about the Tile-serving mailing list