[Tile-serving] [openstreetmap/osm2pgsql] Add more way tests for flex output (#1249)
Jochen Topf
notifications at github.com
Thu Jul 9 14:01:26 UTC 2020
@joto commented on this pull request.
> +{
+ 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"));
+ CHECK(2 == conn.get_count("osm2pgsql_test_tboth"));
+ CHECK(0 == conn.get_count("osm2pgsql_test_tboth",
+ "way_id = 10 AND rel_ids = '{30}'"));
fixed
--
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_r452240144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20200709/e9ecb440/attachment.htm>
More information about the Tile-serving
mailing list