53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
@routing @testbot @via
 | 
						|
Feature: Via points
 | 
						|
 | 
						|
    Background:
 | 
						|
        Given the profile "testbot"
 | 
						|
 | 
						|
        Scenario: Simple via point
 | 
						|
            Given the node map
 | 
						|
             | a | b | c |
 | 
						|
 | 
						|
            And the ways
 | 
						|
             | nodes |
 | 
						|
             | abc   |
 | 
						|
 | 
						|
            When I route I should get
 | 
						|
             | waypoints | route |
 | 
						|
             | a,b,c     | abc   |
 | 
						|
             | c,b,a     | abc   |
 | 
						|
 | 
						|
    Scenario: Via point at a dead end
 | 
						|
        Given the node map
 | 
						|
         | a | b | c |
 | 
						|
         |   | d |   |
 | 
						|
 | 
						|
        And the ways
 | 
						|
         | nodes |
 | 
						|
         | abc   |
 | 
						|
         | bd    |
 | 
						|
 | 
						|
        When I route I should get
 | 
						|
         | waypoints | route         |
 | 
						|
         | a,d,c     | abc,bd,bd,abc |
 | 
						|
         | c,d,a     | abc,bd,bd,abc |
 | 
						|
 | 
						|
     Scenario: Multiple via points
 | 
						|
         Given the node map
 | 
						|
          | a |   |   |   | e | f | g |   |
 | 
						|
          |   | b | c | d |   |   |   | h |
 | 
						|
 | 
						|
         And the ways
 | 
						|
          | nodes |
 | 
						|
          | ae    |
 | 
						|
          | ab    |
 | 
						|
          | bcd   |
 | 
						|
          | de    |
 | 
						|
          | efg   |
 | 
						|
          | gh    |
 | 
						|
          | dh    |
 | 
						|
 | 
						|
         When I route I should get
 | 
						|
          | waypoints   | route     |
 | 
						|
          | a,c,f,h | ab,bcd,de,efg,gh |
 |