Add highway tests (#1294)
This PR adds unit tests for the transportation layer, and fixes several bugs in the unit testing code. It verifies the correct zoom association to the various highway classes, and verifies that updates to highway attributes are populated. Additionally, the documentation for unit tests in the CONTRIB guide is updated to note the specific make commands for developers to run.
This commit is contained in:
committed by
GitHub
parent
26cfe69a9c
commit
d7ea45349e
23
tests/update/500_update-highway.osc
Normal file
23
tests/update/500_update-highway.osc
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<osmChange version="0.6" generator="Manual" timestamp="2020-01-02T00:00:00Z">
|
||||
<!--
|
||||
Test 500: Highways
|
||||
Change tags
|
||||
-->
|
||||
<modify>
|
||||
<!-- Change tags -->
|
||||
<way id="5003" version="2" timestamp="2019-01-01T00:00:00Z" visible="true">
|
||||
<nd ref="500031" />
|
||||
<nd ref="500032" />
|
||||
<tag k="highway" v="secondary"/>
|
||||
<tag k="name" v="OpenMapTiles Secondary Updated"/>
|
||||
<tag k="tunnel" v="yes"/>
|
||||
<tag k="oneway" v="no"/>
|
||||
<tag k="toll" v="no"/>
|
||||
<tag k="layer" v="-1"/>
|
||||
<tag k="bicycle" v="yes"/>
|
||||
<tag k="horse" v="yes"/>
|
||||
<tag k="foot" v="yes"/>
|
||||
</way>
|
||||
</modify>
|
||||
</osmChange>
|
||||
Reference in New Issue
Block a user