Skip to content

Commit

Permalink
Test with a traffic update on an edge with traffic signal
Browse files Browse the repository at this point in the history
  • Loading branch information
oxidase committed Aug 2, 2017
1 parent d95c880 commit a186a06
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions features/car/traffic_light_penalties.feature
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,34 @@ Feature: Car - Handle traffic lights
When I route I should get
| from | to | route | geometry |
| a | c | abc,abc | _ibE_ibE?gJ?gJ |

@traffic
Scenario: Traffic update on the edge with a traffic signal
Given the node map
"""
a - b - c
"""

And the ways
| nodes | highway |
| abc | primary |


And the nodes
| node | highway |
| b | traffic_signals |

And the contract extra arguments "--segment-speed-file {speeds_file}"
And the customize extra arguments "--segment-speed-file {speeds_file}"
And the speed file
"""
1,2,65
2,1,65
"""
And the query options
| annotations | datasources,nodes,speed,duration,weight |

When I route I should get
| from | to | route | speed | weights | time | distances | a:datasources | a:nodes | a:speed | a:duration | a:weight |
| a | c | abc,abc | 59 km/h | 24.2,0 | 24.2s | 399.9m,0m | 1:0 | 1:2:3 | 18:18 | 11.1:11.1 | 11.1:11.1 |
| c | a | abc,abc | 59 km/h | 24.2,0 | 24.2s | 399.9m,0m | 0:1 | 3:2:1 | 18:18 | 11.1:11.1 | 11.1:11.1 |

0 comments on commit a186a06

Please sign in to comment.