Skip to content

Commit

Permalink
added tests refs #21, #7637
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Nov 15, 2024
1 parent 9ff3b44 commit 32bf5f1
Show file tree
Hide file tree
Showing 31 changed files with 3,733 additions and 0 deletions.
441 changes: 441 additions & 0 deletions tests/netconvert/function/tls_programs/discard/input_net.net.xml

Large diffs are not rendered by default.

Empty file.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-s input_net.net.xml
--tls.discard-loaded

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
Empty file.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-s input_net.net.xml
--tls.discard-simple

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-s input_net.net.xml
--tls.discard-simple

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Success.
81 changes: 81 additions & 0 deletions tests/netconvert/function/tls_programs/discard/input_plain.con.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-11-15 08:37:40 by Eclipse SUMO netedit Version v1_21_0+0779-d5e88f83d77
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="/localdata1/debug/7637/orig.net.xml"/>
</input>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-internal-links value="false"/>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.50"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="0"/>
</pedestrian>
</neteditConfiguration>
-->

<connections version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/connections_file.xsd">
<connection from="A0B0" to="B0C0" fromLane="1" toLane="1" keepClear="0"/>
<connection from="A0B0" to="B0A0" fromLane="1" toLane="1"/>

<connection from="A0left0" to="left0A0" fromLane="0" toLane="0"/>

<connection from="B0A0" to="A0left0" fromLane="1" toLane="0" keepClear="0"/>
<connection from="B0A0" to="A0B0" fromLane="1" toLane="1"/>

<connection from="B0C0" to="C0D0" fromLane="1" toLane="0"/>
<connection from="B0C0" to="C0B0" fromLane="1" toLane="1"/>

<connection from="C0B0" to="B0A0" fromLane="1" toLane="1" keepClear="0"/>
<connection from="C0B0" to="B0C0" fromLane="1" toLane="1"/>

<connection from="C0D0" to="D0bottom3" fromLane="0" toLane="0"/>
<connection from="C0D0" to="D0right0" fromLane="0" toLane="0"/>
<connection from="C0D0" to="D0top3" fromLane="0" toLane="0"/>
<connection from="C0D0" to="D0C0" fromLane="0" toLane="0"/>

<connection from="D0C0" to="C0B0" fromLane="0" toLane="1"/>
<connection from="D0C0" to="C0D0" fromLane="0" toLane="0"/>

<connection from="D0bottom3" to="bottom3D0" fromLane="0" toLane="0"/>

<connection from="D0right0" to="right0D0" fromLane="0" toLane="0"/>

<connection from="D0top3" to="top3D0" fromLane="0" toLane="0"/>

<connection from="bottom3D0" to="D0right0" fromLane="0" toLane="0"/>
<connection from="bottom3D0" to="D0top3" fromLane="0" toLane="0"/>
<connection from="bottom3D0" to="D0C0" fromLane="0" toLane="0"/>
<connection from="bottom3D0" to="D0bottom3" fromLane="0" toLane="0"/>

<connection from="left0A0" to="A0B0" fromLane="0" toLane="1" keepClear="0"/>
<connection from="left0A0" to="A0left0" fromLane="0" toLane="0"/>

<connection from="right0D0" to="D0top3" fromLane="0" toLane="0"/>
<connection from="right0D0" to="D0C0" fromLane="0" toLane="0"/>
<connection from="right0D0" to="D0bottom3" fromLane="0" toLane="0"/>
<connection from="right0D0" to="D0right0" fromLane="0" toLane="0"/>

<connection from="top3D0" to="D0C0" fromLane="0" toLane="0"/>
<connection from="top3D0" to="D0bottom3" fromLane="0" toLane="0"/>
<connection from="top3D0" to="D0right0" fromLane="0" toLane="0"/>
<connection from="top3D0" to="D0top3" fromLane="0" toLane="0"/>

<crossing node="B0" edges="B0A0 A0B0" priority="1" width="4.00" outlineShape="198.00,103.30 198.00,96.70 202.00,95.80 202.00,94.80 198.00,94.80 198.00,96.80 202.00,96.80 202.00,103.20"/>
<crossing node="C0" edges="C0D0 D0C0" priority="1" width="4.00" outlineShape="303.50,96.70 303.50,103.30 299.50,103.20 299.50,96.80"/>
</connections>
61 changes: 61 additions & 0 deletions tests/netconvert/function/tls_programs/discard/input_plain.edg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-11-15 08:37:40 by Eclipse SUMO netedit Version v1_21_0+0779-d5e88f83d77
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="/localdata1/debug/7637/orig.net.xml"/>
</input>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-internal-links value="false"/>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.50"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="0"/>
</pedestrian>
</neteditConfiguration>
-->

<edges version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/edges_file.xsd">
<edge id="A0B0" from="A0" to="B0" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="A0left0" from="A0" to="left0" priority="-1" numLanes="1" speed="13.89"/>
<edge id="B0A0" from="B0" to="A0" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="B0C0" from="B0" to="C0" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="C0B0" from="C0" to="B0" priority="-1" numLanes="2" speed="13.89">
<lane index="0" allow="pedestrian" width="2.00"/>
<lane index="1" disallow="pedestrian"/>
</edge>
<edge id="C0D0" from="C0" to="D0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="C0top2" from="C0" to="top2" priority="-1" numLanes="1" speed="13.89" allow="pedestrian"/>
<edge id="D0C0" from="D0" to="C0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="D0bottom3" from="D0" to="bottom3" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="D0right0" from="D0" to="right0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="D0top3" from="D0" to="top3" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="bottom2C0" from="bottom2" to="C0" priority="-1" numLanes="1" speed="13.89" allow="pedestrian"/>
<edge id="bottom3D0" from="bottom3" to="D0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="left0A0" from="left0" to="A0" priority="-1" numLanes="1" speed="13.89"/>
<edge id="right0D0" from="right0" to="D0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
<edge id="top3D0" from="top3" to="D0" priority="-1" numLanes="1" speed="13.89" disallow="pedestrian"/>
</edges>
45 changes: 45 additions & 0 deletions tests/netconvert/function/tls_programs/discard/input_plain.nod.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>

<!-- generated on 2024-11-15 08:37:40 by Eclipse SUMO netedit Version v1_21_0+0779-d5e88f83d77
<neteditConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd">
<input>
<sumo-net-file value="/localdata1/debug/7637/orig.net.xml"/>
</input>
<processing>
<geometry.min-radius.fix.railways value="false"/>
<geometry.max-grade.fix value="false"/>
<offset.disable-normalization value="true"/>
<lefthand value="0"/>
</processing>
<junctions>
<no-internal-links value="false"/>
<no-turnarounds value="true"/>
<junctions.corner-detail value="5"/>
<junctions.limit-turn-speed value="5.50"/>
<rectangular-lane-cut value="0"/>
</junctions>
<pedestrian>
<walkingareas value="0"/>
</pedestrian>
</neteditConfiguration>
-->

<nodes version="1.20" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/nodes_file.xsd">
<location netOffset="0.00,0.00" convBoundary="0.00,0.00,500.00,200.00" origBoundary="0.00,0.00,500.00,200.00" projParameter="!"/>

<node id="A0" x="100.00" y="100.00" type="traffic_light" tl="A0"/>
<node id="B0" x="200.00" y="100.00" type="traffic_light" tl="B0"/>
<node id="C0" x="300.00" y="100.00" type="traffic_light" tl="C0"/>
<node id="D0" x="400.00" y="100.00" type="traffic_light" tl="D0"/>
<node id="bottom2" x="300.00" y="0.00" type="dead_end" fringe="outer"/>
<node id="bottom3" x="400.00" y="0.00" type="priority" fringe="outer"/>
<node id="left0" x="0.00" y="100.00" type="priority" fringe="outer"/>
<node id="right0" x="500.00" y="100.00" type="priority" fringe="outer"/>
<node id="top2" x="300.00" y="200.00" type="dead_end" fringe="outer"/>
<node id="top3" x="400.00" y="200.00" type="priority" fringe="outer"/>
</nodes>
Empty file.
Loading

0 comments on commit 32bf5f1

Please sign in to comment.