improve test for maxspeed
This commit is contained in:
		
							parent
							
								
									82caa357cd
								
							
						
					
					
						commit
						50d3c2c9d1
					
				@ -5,7 +5,7 @@ Feature: Max speed restrictions
 | 
				
			|||||||
		Given the speedprofile "car"
 | 
							Given the speedprofile "car"
 | 
				
			||||||
		Given a grid size of 1000 meters
 | 
							Given a grid size of 1000 meters
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	Scenario: Car -  Max speed on a fast road
 | 
						Scenario: Car -  Maxspeed below profile speed of way type
 | 
				
			||||||
		Given the node map
 | 
							Given the node map
 | 
				
			||||||
		 | a | b | c |
 | 
							 | a | b | c |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -17,18 +17,18 @@ Feature: Max speed restrictions
 | 
				
			|||||||
		When I route I should get
 | 
							When I route I should get
 | 
				
			||||||
		 | from | to | route | time      |
 | 
							 | from | to | route | time      |
 | 
				
			||||||
		 | a    | b  | ab    | 40s ~10%  |
 | 
							 | a    | b  | ab    | 40s ~10%  |
 | 
				
			||||||
		 | b    | c  | bc    | 360s +-1 |
 | 
							 | b    | c  | bc    | 360s ~10% |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Scenario: Car -  Max speed on a slow roads
 | 
						Scenario: Car -  Maxspeed above profile speed of way type
 | 
				
			||||||
		Given the node map
 | 
							Given the node map
 | 
				
			||||||
		 | a | b | c |
 | 
							 | a | b | c |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		And the ways
 | 
							And the ways
 | 
				
			||||||
		 | nodes | maxspeed |
 | 
							 | nodes | highway     | maxspeed |
 | 
				
			||||||
		 | ab    |          |
 | 
							 | ab    | residential |          |
 | 
				
			||||||
		 | bc    | 10       |
 | 
							 | bc    | residential | 50       |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		When I route I should get
 | 
							When I route I should get
 | 
				
			||||||
		 | from | to | route | time      |
 | 
							 | from | to | route | time      |
 | 
				
			||||||
		 | a    | b  | ab    | 60s ~10% |
 | 
							 | a    | b  | ab    | 145s ~10% |
 | 
				
			||||||
		 | b    | c  | bc    | 360s +-1 |
 | 
							 | b    | c  | bc    | 145s ~10% |
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user