38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@routing @car @startpoint
 | 
						|
Feature: Car - Allowed start/end modes
 | 
						|
 | 
						|
    Background:
 | 
						|
        Given the profile "car"
 | 
						|
 | 
						|
    Scenario: Car - Don't start/stop on ferries
 | 
						|
        Given the node map
 | 
						|
            """
 | 
						|
            a 1 b 2 c
 | 
						|
            """
 | 
						|
 | 
						|
        And the ways
 | 
						|
            | nodes | highway | route | bicycle |
 | 
						|
            | ab    | primary |       |         |
 | 
						|
            | bc    |         | ferry | yes     |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
            | from | to | route | modes           |
 | 
						|
            | 1    | 2  | ab,ab | driving,driving |
 | 
						|
            | 2    | 1  | ab,ab | driving,driving |
 | 
						|
 | 
						|
    Scenario: Car - Don't start/stop on trains
 | 
						|
        Given the node map
 | 
						|
            """
 | 
						|
            a 1 b 2 c
 | 
						|
            """
 | 
						|
 | 
						|
        And the ways
 | 
						|
            | nodes | highway | railway | bicycle |
 | 
						|
            | ab    | primary |         |         |
 | 
						|
            | bc    |         | train   | yes     |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
            | from | to | route | modes           |
 | 
						|
            | 1    | 2  | ab,ab | driving,driving |
 | 
						|
            | 2    | 1  | ab,ab | driving,driving |
 |