<p></p>
<p><b>@joto</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/osm2pgsql/pull/1249#discussion_r452240069">tests/test-output-flex-way-change.cpp</a>:</p>
<pre style='color:#555'>> + SECTION("change node list to make way invalid")
+ {
+ REQUIRE_NOTHROW(
+ db.run_import(options, "w10 v2 dV Tt1=yes,t2=yes,tboth=yes Nn10"));
+ }
+
+ SECTION("change node to make way invalid (n11 same location as n10)")
+ {
+ REQUIRE_NOTHROW(db.run_import(options, "n11 v2 dV x10.0 y10.0"));
+ }
+
+ 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}'"));
</pre>
<p>fixed</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/osm2pgsql/pull/1249#discussion_r452240069">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AA6353S3VRIR2OO7DAOOJBTR2XETBANCNFSM4OUWA7LA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AA6353UG76QR7U444I7VIELR2XETBA5CNFSM4OUWA7LKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGODKIAFPI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/osm2pgsql/pull/1249#discussion_r452240069",
"url": "https://github.com/openstreetmap/osm2pgsql/pull/1249#discussion_r452240069",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>