2016-11-20 10:20:57 -05:00
|
|
|
@routing @testbot @nil
|
|
|
|
Feature: Testbot - Check assigning nil values
|
|
|
|
Scenario: Assign nil 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)
|
|
|
|
result.name = nil
|
|
|
|
result.ref = nil
|
|
|
|
result.destinations = nil
|
|
|
|
result.exits = nil
|
|
|
|
result.pronunciation = nil
|
|
|
|
result.turn_lanes_forward = nil
|
|
|
|
result.turn_lanes_backward = nil
|
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 | ,, |
|