osrm-backend/features/testbot/nil.feature

42 lines
1.1 KiB
Gherkin
Raw Normal View History

2016-11-20 10:20:57 -05:00
@routing @testbot @nil
2020-11-23 19:07:10 -05:00
Feature: Testbot - Check assigning empty values
Scenario: Assign empty values to all way strings
2017-05-18 08:27:28 -04:00
Given the profile file
2016-11-20 10:20:57 -05:00
"""
2017-05-18 08:27:28 -04:00
functions = require('testbot')
2016-11-20 10:20:57 -05:00
2017-05-18 08:27:28 -04:00
function way_function(profile, way, result)
2020-11-23 19:07:10 -05:00
result.name = ""
result.ref = ""
result.destinations = ""
result.exits = ""
result.pronunciation = ""
result.turn_lanes_forward = ""
result.turn_lanes_backward = ""
2016-11-20 10:20:57 -05:00
2017-05-18 08:27:28 -04:00
result.forward_speed = 10
result.backward_speed = 10
result.forward_mode = mode.driving
result.backward_mode = mode.driving
2016-11-20 10:20:57 -05:00
end
2017-05-18 08:27:28 -04:00
functions.process_way = way_function
return functions
2016-11-20 10:20:57 -05:00
"""
Given the node map
"""
a b c
d
"""
And the ways
| nodes |
| ab |
| bc |
| bd |
When I route I should get
| from | to | route |
| a | d | ,, |
| d | a | ,, |