- test on normal segment - test on oneway segment Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
		
			
				
	
	
		
			207 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			207 lines
		
	
	
		
			5.4 KiB
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| @routing @side_param @testbot
 | |
| Feature: Side parameter
 | |
| 
 | |
|     Background:
 | |
|         Given the profile "car"
 | |
|         And a grid size of 10 meters
 | |
| 
 | |
|     Scenario: Testbot - Start End same side, option both for Start and End
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b b   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Start End same side, option both for Start and Default for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route    |
 | |
|             | s    | e  | b d   | ab,bc,bc |
 | |
| 
 | |
|     Scenario: Testbot - Start End same side, option both for Start and Opposite for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b o   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Start End opposite side, option both for Start and End
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b b   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Start End opposite side, option both for Start and Default for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b d   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Start End opposite side, option both for Start and Opposite for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes |
 | |
|             | ab    |
 | |
|             | bc    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route    |
 | |
|             | s    | e  | b o   | ab,bc,bc |
 | |
| 
 | |
|     ###############
 | |
|     # Oneway Test #
 | |
|     ###############
 | |
|     Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and End, 
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b b   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and Default for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b d   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Test on oneway segment, Start End same side, option both for Start and Opposite for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s        e
 | |
|             a------b------c
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b o   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and End, 
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b b   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and Default for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b d   | ab,bc |
 | |
| 
 | |
|     Scenario: Testbot - Test on oneway segment, Start End opposite side, option both for Start and Opposite for End
 | |
|         Given the node map
 | |
|             """
 | |
|                s
 | |
|             a------b------c
 | |
|                         e
 | |
|             """
 | |
| 
 | |
|         And the ways
 | |
|             | nodes | oneway |
 | |
|             | ab    | yes    |
 | |
|             | bc    | yes    |
 | |
| 
 | |
|         When I route I should get
 | |
|             | from | to | sides | route |
 | |
|             | s    | e  | b o   | ab,bc | |