change test file to cuke table

This commit is contained in:
Emil Tin
2013-10-02 20:07:53 +02:00
parent a354d7c00b
commit f83748fdc2
2 changed files with 24 additions and 56 deletions
+24 -9
View File
@@ -4,19 +4,34 @@ Feature: Avoid weird loops caused by rounding errors
Background:
Given the profile "testbot"
Scenario: Avoid weird loops, small input file
Given the input file features/data/loop_small.osm
Scenario: Avoid weird loops 1
Given the node locations
| node | lat | lon |
| a | 55.6602463 | 12.5717242 |
| b | 55.6600270 | 12.5723008 |
| c | 55.6601840 | 12.5725037 |
| d | 55.6604146 | 12.5719299 |
| e | 55.6599410 | 12.5727592 |
| f | 55.6606727 | 12.5736932 |
| g | 55.6603422 | 12.5732619 |
| h | 55.6607785 | 12.5739097 |
| i | 55.6600566 | 12.5725070 |
| x | 55.6608180 | 12.5740510 |
| y | 55.6600730 | 12.5740670 |
And the node locations
| node | lat | lon |
| a | 55.660818 | 12.574051 |
| b | 55.660073 | 12.574067 |
And the ways
| nodes |
| ab |
| hfgd |
| icd |
| ad |
| ie |
When I route I should get
| from | to | route | turns |
| a | b | Artillerivej | head,destination |
| from | to | route | turns |
| x | y | hfgd | head,destination |
Scenario: Avoid weird loops, manual input
Scenario: Avoid weird loops 2
Given the node locations
| node | lat | lon |
| a | 55.660778 | 12.573909 |