Skip to content

Commit a5ab52a

Browse files
committed
added test refs #21, #17676
1 parent 50e0cbc commit a5ab52a

10 files changed

Lines changed: 165 additions & 0 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2026-03-03T11:09:01.624898+01:00 by Eclipse SUMO netedit v1_26_0+0416-ba39a9a8bf6
4+
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
5+
6+
<input>
7+
<sumo-net-file value="dest.net.xml"/>
8+
</input>
9+
10+
<output>
11+
<output-file value="dest.net.xml"/>
12+
</output>
13+
14+
<processing>
15+
<geometry.min-radius.fix.railways value="false"/>
16+
<geometry.avoid-overlap value="false"/>
17+
<geometry.max-grade.fix value="false"/>
18+
<offset.disable-normalization value="true"/>
19+
<lefthand value="0"/>
20+
</processing>
21+
22+
<junctions>
23+
<no-internal-links value="true"/>
24+
<no-turnarounds value="true"/>
25+
<junctions.corner-detail value="0"/>
26+
<junctions.limit-turn-speed value="-1.00"/>
27+
<rectangular-lane-cut value="0"/>
28+
</junctions>
29+
30+
<pedestrian>
31+
<walkingareas value="0"/>
32+
</pedestrian>
33+
34+
</neteditConfiguration>
35+
-->
36+
37+
<net version="1.20" avoidOverlap="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">
38+
39+
<location netOffset="100.00,100.00" convBoundary="0.00,100.00,100.00,100.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>
40+
41+
<edge id="CW" from="C" to="W" priority="2" type="type2">
42+
<lane id="CW_0" index="0" allow="passenger" speed="13.89" length="100.00" shape="100.00,104.80 0.00,104.80"/>
43+
<lane id="CW_1" index="1" allow="passenger" speed="13.89" length="100.00" shape="100.00,101.60 0.00,101.60"/>
44+
</edge>
45+
46+
<junction id="C" type="dead_end" x="100.00" y="100.00" incLanes="" intLanes="" shape="100.00,100.00 100.00,106.40"/>
47+
<junction id="W" type="dead_end" x="0.00" y="100.00" incLanes="CW_0 CW_1" intLanes="" shape="0.00,106.40 0.00,100.00"/>
48+
49+
</net>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2026-03-03 11:09:10.604015 by Eclipse SUMO netdiff.py v1_26_0+0418-50e0cbc1dcd
4+
<configuration>
5+
<source value="source.net.xml"/>
6+
<dest value="dest.net.xml"/>
7+
<outprefix value="diff"/>
8+
</configuration>
9+
-->
10+
11+
<connections version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/connections_file.xsd">
12+
<!-- Deleted Elements -->
13+
<!-- Created Elements -->
14+
<!-- Changed Elements -->
15+
</connections>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2024-02-29 13:55:29.444217 by netdiff.py v1_19_0+1092-a49a04372af
4+
<configuration>
5+
<source value="source.net.xml"/>
6+
<dest value="dest.net.xml"/>
7+
<outprefix value="diff"/>
8+
</configuration>
9+
-->
10+
11+
<edges version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/edgediff_file.xsd">
12+
<!-- Deleted Elements -->
13+
<!-- Created Elements -->
14+
<!-- Changed Elements -->
15+
</edges>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2024-02-29 13:55:29.402185 by netdiff.py v1_19_0+1092-a49a04372af
4+
<configuration>
5+
<source value="source.net.xml"/>
6+
<dest value="dest.net.xml"/>
7+
<outprefix value="diff"/>
8+
</configuration>
9+
-->
10+
11+
<nodes version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/nodes_file.xsd">
12+
<!-- Deleted Elements -->
13+
<!-- Created Elements -->
14+
<!-- Changed Elements -->
15+
</nodes>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2026-03-03 11:09:10.641365 by Eclipse SUMO netdiff.py v1_26_0+0418-50e0cbc1dcd
4+
<configuration>
5+
<source value="source.net.xml"/>
6+
<dest value="dest.net.xml"/>
7+
<outprefix value="diff"/>
8+
</configuration>
9+
-->
10+
11+
<tlLogics version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tllogic_file.xsd">
12+
<!-- Deleted Elements -->
13+
<!-- Created Elements -->
14+
<!-- Changed Elements -->
15+
</tlLogics>

tests/tools/net/netdiff/edgeType/errors.tools

Whitespace-only changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
source.net.xml dest.net.xml diff tools/net/netdiff.py
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Success.
2+
Success.
3+
Skipping diff.typ.xml due to lack of input files.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<!-- generated on 2026-03-03T11:08:44.239804+01:00 by Eclipse SUMO netedit v1_26_0+0416-ba39a9a8bf6
4+
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
5+
6+
<input>
7+
<sumo-net-file value="source.net.xml"/>
8+
</input>
9+
10+
<output>
11+
<output-file value="source.net.xml"/>
12+
</output>
13+
14+
<processing>
15+
<geometry.min-radius.fix.railways value="false"/>
16+
<geometry.avoid-overlap value="false"/>
17+
<geometry.max-grade.fix value="false"/>
18+
<offset.disable-normalization value="true"/>
19+
<lefthand value="0"/>
20+
</processing>
21+
22+
<junctions>
23+
<no-internal-links value="false"/>
24+
<no-turnarounds value="true"/>
25+
<junctions.corner-detail value="0"/>
26+
<junctions.limit-turn-speed value="-1.00"/>
27+
<rectangular-lane-cut value="0"/>
28+
</junctions>
29+
30+
<pedestrian>
31+
<walkingareas value="0"/>
32+
</pedestrian>
33+
34+
</neteditConfiguration>
35+
-->
36+
37+
<net version="1.20" avoidOverlap="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd">
38+
39+
<location netOffset="100.00,100.00" convBoundary="0.00,100.00,100.00,100.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/>
40+
41+
<edge id="CW" from="C" to="W" priority="2" type="type1">
42+
<lane id="CW_0" index="0" allow="passenger" speed="13.89" length="100.00" shape="100.00,104.80 0.00,104.80"/>
43+
<lane id="CW_1" index="1" allow="passenger" speed="13.89" length="100.00" shape="100.00,101.60 0.00,101.60"/>
44+
</edge>
45+
46+
<junction id="C" type="dead_end" x="100.00" y="100.00" incLanes="" intLanes="" shape="100.00,100.00 100.00,106.40"/>
47+
<junction id="W" type="dead_end" x="0.00" y="100.00" incLanes="CW_0 CW_1" intLanes="" shape="0.00,106.40 0.00,100.00"/>
48+
49+
</net>

tests/tools/net/netdiff/testsuite.tools

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,8 @@ plain_geo
5252

5353
# test .net.xml.gz as input
5454
input_gz
55+
56+
# only change is edgeType
57+
edgeType
5558
save_config
5659
load_config

0 commit comments

Comments
 (0)