rewrite tests for access=destination
This commit is contained in:
		
							parent
							
								
									a14db578e2
								
							
						
					
					
						commit
						97f04eae91
					
				| @ -6,54 +6,60 @@ Feature: Bike - Destination only, no passing through | ||||
| 		 | ||||
| 	Scenario: Bike - Destination only street | ||||
| 		Given the node map | ||||
| 		 | a |   |   |   |   | | ||||
| 		 | a |   |   |   | e | | ||||
| 		 |   | b | c | d |   | | ||||
| 		 |   |   |   |   | e | | ||||
| 		 |   |   |   |   |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| 		 | ab    |             | | ||||
| 		 | bcd   | destination | | ||||
| 		 | de    |             | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route     | | ||||
| 		 | a    | b  | ab        | | ||||
| 		 | a    | c  | ab,bcd    | | ||||
| 		 | a    | d  | ab,bcd    | | ||||
| 		 | a    | e  | ab,bcd,de | | ||||
| 		 | a    | e  | axye      | | ||||
| 		 | e    | d  | de        | | ||||
| 		 | e    | c  | de,bcd    | | ||||
| 		 | e    | b  | de,bcd    | | ||||
| 		 | e    | a  | de,bcd,ab | | ||||
| 		 | b    | c  | bcd       | | ||||
| 		 | b    | d  | bcd       | | ||||
| 		 | d    | c  | bcd       | | ||||
| 		 | d    | b  | bcd       | | ||||
| 		 | e    | a  | axye      | | ||||
| 		 | ||||
| 	Scenario: Bike - Series of destination only streets | ||||
| 	Scenario: Bike - Destination only street | ||||
| 		Given the node map | ||||
| 		 | a |   | c |   | e | | ||||
| 		 |   | b |   | d |   | | ||||
| 		 | a |   |   |   | e | | ||||
| 		 |   | b | c | d |   | | ||||
| 		 |   |   |   |   |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| 		 | ab    |             | | ||||
| 		 | bc    | destination | | ||||
| 		 | cd    | destination | | ||||
| 		 | de    | destination | | ||||
| 		 | de    |             | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route | | ||||
| 		 | a    | b  | ab    | | ||||
| 		 | a    | c  | ab    | | ||||
| 		 | a    | d  | ab    | | ||||
| 		 | a    | e  | ab    | | ||||
| 		 | from | to | route    | | ||||
| 		 | a    | b  | ab       | | ||||
| 		 | a    | c  | ab,bc    | | ||||
| 		 | a    | d  | ab,bc,cd | | ||||
| 		 | a    | e  | axye     | | ||||
| 		 | e    | d  | de       | | ||||
| 		 | e    | c  | de,dc    | | ||||
| 		 | e    | b  | de,dc,bc | | ||||
| 		 | e    | a  | axye     | | ||||
| 
 | ||||
| 	Scenario: Bike - Routing inside a destination only area | ||||
| 		Given the node map | ||||
| 		 | a |   | c |   | e | | ||||
| 		 |   | b |   | d |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| @ -61,6 +67,7 @@ Feature: Bike - Destination only, no passing through | ||||
| 		 | bc    | destination | | ||||
| 		 | cd    | destination | | ||||
| 		 | de    | destination | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route       | | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| @routing @car @destination | ||||
| @routing @bicycle @destination | ||||
| Feature: Car - Destination only, no passing through | ||||
| 
 | ||||
| 	Background: | ||||
| @ -6,54 +6,60 @@ Feature: Car - Destination only, no passing through | ||||
| 		 | ||||
| 	Scenario: Car - Destination only street | ||||
| 		Given the node map | ||||
| 		 | a |   |   |   |   | | ||||
| 		 | a |   |   |   | e | | ||||
| 		 |   | b | c | d |   | | ||||
| 		 |   |   |   |   | e | | ||||
| 		 |   |   |   |   |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| 		 | ab    |             | | ||||
| 		 | bcd   | destination | | ||||
| 		 | de    |             | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route     | | ||||
| 		 | a    | b  | ab        | | ||||
| 		 | a    | c  | ab,bcd    | | ||||
| 		 | a    | d  | ab,bcd    | | ||||
| 		 | a    | e  | ab,bcd,de | | ||||
| 		 | a    | e  | axye      | | ||||
| 		 | e    | d  | de        | | ||||
| 		 | e    | c  | de,bcd    | | ||||
| 		 | e    | b  | de,bcd    | | ||||
| 		 | e    | a  | de,bcd,ab | | ||||
| 		 | b    | c  | bcd       | | ||||
| 		 | b    | d  | bcd       | | ||||
| 		 | d    | c  | bcd       | | ||||
| 		 | d    | b  | bcd       | | ||||
| 		 | e    | a  | axye      | | ||||
| 		 | ||||
| 	Scenario: Car - Series of destination only streets | ||||
| 	Scenario: Car - Destination only street | ||||
| 		Given the node map | ||||
| 		 | a |   | c |   | e | | ||||
| 		 |   | b |   | d |   | | ||||
| 		 | a |   |   |   | e | | ||||
| 		 |   | b | c | d |   | | ||||
| 		 |   |   |   |   |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| 		 | ab    |             | | ||||
| 		 | bc    | destination | | ||||
| 		 | cd    | destination | | ||||
| 		 | de    | destination | | ||||
| 		 | de    |             | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route | | ||||
| 		 | a    | b  | ab    | | ||||
| 		 | a    | c  | ab    | | ||||
| 		 | a    | d  | ab    | | ||||
| 		 | a    | e  | ab    | | ||||
| 		 | from | to | route    | | ||||
| 		 | a    | b  | ab       | | ||||
| 		 | a    | c  | ab,bc    | | ||||
| 		 | a    | d  | ab,bc,cd | | ||||
| 		 | a    | e  | axye     | | ||||
| 		 | e    | d  | de       | | ||||
| 		 | e    | c  | de,dc    | | ||||
| 		 | e    | b  | de,dc,bc | | ||||
| 		 | e    | a  | axye     | | ||||
| 
 | ||||
| 	Scenario: Car - Routing inside a destination only area | ||||
| 		Given the node map | ||||
| 		 | a |   | c |   | e | | ||||
| 		 |   | b |   | d |   | | ||||
| 		 | x |   |   |   | y | | ||||
| 
 | ||||
| 		And the ways | ||||
| 		 | nodes | access      | | ||||
| @ -61,6 +67,7 @@ Feature: Car - Destination only, no passing through | ||||
| 		 | bc    | destination | | ||||
| 		 | cd    | destination | | ||||
| 		 | de    | destination | | ||||
| 		 | axye  |             | | ||||
| 
 | ||||
| 		When I route I should get | ||||
| 		 | from | to | route       | | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user