Skip to content

Commit

Permalink
added tests refs #14665, #21
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Apr 9, 2024
1 parent 2cae470 commit 93f1d1d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/complex/traci/edge/edge/output.complex
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Retrying in 1 seconds
step 0
step 1
step 2
Expand Down Expand Up @@ -27,6 +28,8 @@ personIds ('p0',)
waiting time 0.0
angle (with default relative position) 270.0
angle (with some relative position) 270.0
fromJunction 2
toJunction m2
checking occupancy with unicode id 0.02012072434607646
traveltime after adaption 61.61141152545303
adaptedTraveltime after adaption 42.0
Expand Down
2 changes: 2 additions & 0 deletions tests/complex/traci/edge/edge/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
print("waiting time", traci.edge.getWaitingTime(edgeID))
print("angle (with default relative position)", traci.edge.getAngle(edgeID))
print("angle (with some relative position)", traci.edge.getAngle(edgeID, 10))
print("fromJunction", traci.edge.getFromJunction(edgeID))
print("toJunction", traci.edge.getToJunction(edgeID))
# testing unicode
print("checking occupancy with unicode id",
traci.edge.getLastStepOccupancy(str(edgeID)))
Expand Down
2 changes: 2 additions & 0 deletions tests/complex/traci/junction/junction/output.complex
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ examining 0
pos (500.0, 500.0)
pos3D (500.0, 500.0, 0.0)
parameter 42
incomingEdges ('1si', '2si', '3si', '4si')
outgoingEdges ('1o', '2o', '3o', '4o')
{0: ('0', '1', '2', '3', '4', 'm1', 'm2', 'm3', 'm4')}
step 3
{0: ('0', '1', '2', '3', '4', 'm1', 'm2', 'm3', 'm4')}
Expand Down
2 changes: 2 additions & 0 deletions tests/complex/traci/junction/junction/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
print("pos3D", traci.junction.getPosition(junctionID, True))
traci.junction.setParameter(junctionID, "foo", "42")
print("parameter", traci.junction.getParameter(junctionID, "foo"))
print("incomingEdges", traci.junction.getIncomingEdges(junctionID))
print("outgoingEdges", traci.junction.getOutgoingEdges(junctionID))

traci.junction.subscribe(junctionID)
print(traci.junction.getSubscriptionResults(junctionID))
Expand Down

0 comments on commit 93f1d1d

Please sign in to comment.