Add test case for sliproads converted from forks
This commit is contained in:
		
							parent
							
								
									6dd029e6ea
								
							
						
					
					
						commit
						12d1d84b11
					
				| @ -992,7 +992,6 @@ Feature: Slipways and Dedicated Turn Lanes | ||||
|             | dbef  | primary      | dbef  |        | | ||||
|             | ae    | primary_link | ae    | yes    | | ||||
| 
 | ||||
| 
 | ||||
|        When I route I should get | ||||
|             | waypoints | route          | turns                    | locations | | ||||
|             | s,f       | sabc,dbef,dbef | depart,turn right,arrive | s,a,f     | | ||||
| @ -1019,7 +1018,6 @@ Feature: Slipways and Dedicated Turn Lanes | ||||
|             | dbcf  | primary      | dbcf |        | | ||||
|             | ac    | primary_link | ae   | yes    | | ||||
| 
 | ||||
| 
 | ||||
|        When I route I should get | ||||
|             | waypoints | route         | turns                    | locations | | ||||
|             | s,f       | sab,dbcf,dbcf | depart,turn right,arrive | s,a,f     | | ||||
| @ -1047,7 +1045,31 @@ Feature: Slipways and Dedicated Turn Lanes | ||||
|             | ae    | primary_link | sab   | yes    | | ||||
|             | cg    | primary      | cg    |        | | ||||
| 
 | ||||
| 
 | ||||
|        When I route I should get | ||||
|             | waypoints | route           | turns                    | locations | | ||||
|             | s,f       | sab,dbcef,dbcef | depart,turn right,arrive | s,a,f     | | ||||
| 
 | ||||
| 
 | ||||
|     @sliproads | ||||
|     Scenario: Sliproad converted from a fork | ||||
|         Given the node map | ||||
|             """ | ||||
|                      d | ||||
|                      . | ||||
|                      b | ||||
|               s . a '. | ||||
|                     `c | ||||
|                      . | ||||
|                      f | ||||
|             """ | ||||
| 
 | ||||
|         And the ways | ||||
|             | nodes | highway  | name | ref   | oneway | | ||||
|             | sa    | tertiary |      | D 60A | yes    | | ||||
|             | ab    | tertiary | ab   | D 60A | yes    | | ||||
|             | ac    | tertiary |      | D 60A | yes    | | ||||
|             | dbcf  | tertiary | dbcf | D 543 | yes    | | ||||
| 
 | ||||
|        When I route I should get | ||||
|             | waypoints | route      | turns                    | locations | | ||||
|             | s,f       | ,dbcf,dbcf | depart,turn right,arrive | s,a,f     | | ||||
|  | ||||
| @ -582,7 +582,6 @@ operator()(const NodeID /*nid*/, const EdgeID source_edge_id, Intersection inter | ||||
|         } | ||||
|         else if (!name_table.GetNameForID(main_annotation.name_id).empty()) | ||||
|         { | ||||
|             OSRM_ASSERT(false, coordinates[intersection_node_id]); | ||||
|             intersection[*obvious].instruction.type = TurnType::NewName; | ||||
|             intersection[*obvious].instruction.direction_modifier = | ||||
|                 getTurnDirection(intersection[*obvious].angle); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user