add test for process error codes

This commit is contained in:
Emil Tin
2012-09-28 15:29:13 +02:00
parent 4c02542dc5
commit 334f02d7f8
7 changed files with 49 additions and 9 deletions
+16 -5
View File
@@ -3,14 +3,25 @@ Feature: Handle bad data in a graceful manner
Scenario: Empty dataset
Given the node map
| a | b |
| |
Given the ways
| nodes |
When I route I should get
| from | to | route |
| a | b | |
When I preprocess data
Then preparing should return code 255
Scenario: Only dead-end oneways
Given the node map
| a | b | c |
Given the ways
| nodes | oneway |
| ab | yes |
| cb | yes |
When I preprocess data
Then preparing should return code 255
Scenario: Start/end point at the same location
Given the node map
@@ -29,7 +40,7 @@ Feature: Handle bad data in a graceful manner
| 2 | 2 | |
@poles
Scenario: No routing close to the north/south pole
Scenario: Routing close to the north/south pole
Mercator is undefined close to the poles.
All nodes and request with latitude to close to either of the poles should therefore be ignored.