53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| @routing @guidance
 | |
| Feature: Features related to bugs
 | |
| 
 | |
|     Background:
 | |
|         Given the profile "car"
 | |
|         Given a grid size of 5 meters
 | |
| 
 | |
|     @2852
 | |
|     Scenario: Loop
 | |
|         Given the node map
 | |
|             """
 | |
|             a 1   g     b
 | |
| 
 | |
| 
 | |
|             e           f
 | |
| 
 | |
|                         2
 | |
|             d     h     c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | name   | oneway |
 | |
|             | agb   | top    | yes    |
 | |
|             | bfc   | right  | yes    |
 | |
|             | chd   | bottom | yes    |
 | |
|             | dea   | left   | yes    |
 | |
| 
 | |
|         And the nodes
 | |
|             | node | highway         |
 | |
|             | g    | traffic_signals |
 | |
|             | f    | traffic_signals |
 | |
|             | h    | traffic_signals |
 | |
|             | e    | traffic_signals |
 | |
| 
 | |
|         When I route I should get
 | |
|             | waypoints | route           | turns                        |
 | |
|             | 1,2       | top,right,right | depart,new name right,arrive |
 | |
| 
 | |
|     @3156
 | |
|     Scenario: Incorrect lanes tag
 | |
|         Given the node map
 | |
|             """
 | |
|             a b
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | lanes |
 | |
|             | ab    | 1; 2  |
 | |
| 
 | |
|         And the data has been saved to disk
 | |
|         When I try to run "osrm-extract {osm_file} --profile {profile_file}"
 | |
|         Then it should exit successfully
 |