42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| @routing @testbot @nil
 | |
| Feature: Testbot - Check assigning nil values
 | |
|     Scenario: Assign nil values to all way strings
 | |
|         Given the profile file
 | |
|         """
 | |
|         functions = require('testbot')
 | |
| 
 | |
|         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
 | |
| 
 | |
|           result.forward_speed = 10
 | |
|           result.backward_speed = 10
 | |
|           result.forward_mode = mode.driving
 | |
|           result.backward_mode = mode.driving
 | |
|         end
 | |
| 
 | |
|         functions.process_way = way_function
 | |
|         return functions
 | |
|         """
 | |
|         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  | ,,    |
 |