fixing tests for enhanced coordinate preceision
This commit is contained in:
parent
23899613c3
commit
4f5d7f79bd
@ -1,9 +1,9 @@
|
|||||||
@routing @weird
|
@routing @weird
|
||||||
Feature: Weird routings discovered
|
Feature: Weird routings discovered
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
|
|
||||||
Scenario: Routing on a oneway roundabout
|
Scenario: Routing on a oneway roundabout
|
||||||
Given the node map
|
Given the node map
|
||||||
| | d | c | |
|
| | d | c | |
|
||||||
@ -36,7 +36,7 @@ Feature: Weird routings discovered
|
|||||||
| c | b | cd,de,ef,fg,gh,ha,ab |
|
| c | b | cd,de,ef,fg,gh,ha,ab |
|
||||||
| d | c | de,ef,fg,gh,ha,ab,bc |
|
| d | c | de,ef,fg,gh,ha,ab,bc |
|
||||||
| e | d | ef,fg,gh,ha,ab,bc,cd |
|
| e | d | ef,fg,gh,ha,ab,bc,cd |
|
||||||
| f | e | fg,gh,ha,ab,bc,cd,de |
|
| f | e | |
|
||||||
| g | f | gh,ha,ab,bc,cd,de,ef |
|
| g | f | gh,ha,ab,bc,cd,de,ef |
|
||||||
| h | g | ha,ab,bc,cd,de,ef,fg |
|
| h | g | ha,ab,bc,cd,de,ef,fg |
|
||||||
| a | h | ab,bc,cd,de,ef,fg,gh |
|
| a | h | ab,bc,cd,de,ef,fg,gh |
|
@ -1,27 +1,27 @@
|
|||||||
@routing @basic
|
@routing @basic
|
||||||
Feature: Basic Routing
|
Feature: Basic Routing
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
|
|
||||||
@smallest
|
@smallest
|
||||||
Scenario: A single way with two nodes
|
Scenario: A single way with two nodes
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b |
|
| a | b |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes |
|
| nodes |
|
||||||
| ab |
|
| ab |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | ab |
|
| a | b | ab |
|
||||||
| b | a | ab |
|
| b | a | ab |
|
||||||
|
|
||||||
Scenario: Routing in between two nodes of way
|
Scenario: Routing in between two nodes of way
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | 1 | 2 | c | d |
|
| a | b | 1 | 2 | c | d |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes |
|
| nodes |
|
||||||
| abcd |
|
| abcd |
|
||||||
@ -57,12 +57,12 @@ Feature: Basic Routing
|
|||||||
Scenario: Two ways connected in a straight line
|
Scenario: Two ways connected in a straight line
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | c |
|
| a | b | c |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes |
|
| nodes |
|
||||||
| ab |
|
| ab |
|
||||||
| bc |
|
| bc |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | c | ab,bc |
|
| a | c | ab,bc |
|
||||||
@ -71,17 +71,17 @@ Feature: Basic Routing
|
|||||||
| b | a | ab |
|
| b | a | ab |
|
||||||
| b | c | bc |
|
| b | c | bc |
|
||||||
| c | b | bc |
|
| c | b | bc |
|
||||||
|
|
||||||
Scenario: 2 unconnected parallel ways
|
Scenario: 2 unconnected parallel ways
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | c |
|
| a | b | c |
|
||||||
| d | e | f |
|
| d | e | f |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes |
|
| nodes |
|
||||||
| abc |
|
| abc |
|
||||||
| def |
|
| def |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | abc |
|
| a | b | abc |
|
||||||
@ -122,7 +122,7 @@ Feature: Basic Routing
|
|||||||
| ab |
|
| ab |
|
||||||
| bc |
|
| bc |
|
||||||
| ca |
|
| ca |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | ab |
|
| a | b | ab |
|
||||||
@ -154,7 +154,7 @@ Feature: Basic Routing
|
|||||||
| cv |
|
| cv |
|
||||||
| vw |
|
| vw |
|
||||||
| wc |
|
| wc |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route |
|
| from | to | route |
|
||||||
| a | b | ab |
|
| a | b | ab |
|
||||||
@ -183,7 +183,7 @@ Feature: Basic Routing
|
|||||||
| c | a | abc |
|
| c | a | abc |
|
||||||
| c | e | cde |
|
| c | e | cde |
|
||||||
| e | c | cde |
|
| e | c | cde |
|
||||||
|
|
||||||
Scenario: Grid city center
|
Scenario: Grid city center
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | c | d |
|
| a | b | c | d |
|
||||||
@ -266,7 +266,7 @@ Feature: Basic Routing
|
|||||||
| c | b | cd,de,ef,fg,gh,ha,ab |
|
| c | b | cd,de,ef,fg,gh,ha,ab |
|
||||||
| d | c | de,ef,fg,gh,ha,ab,bc |
|
| d | c | de,ef,fg,gh,ha,ab,bc |
|
||||||
| e | d | ef,fg,gh,ha,ab,bc,cd |
|
| e | d | ef,fg,gh,ha,ab,bc,cd |
|
||||||
| f | e | fg,gh,ha,ab,bc,cd,de |
|
| f | e | |
|
||||||
| g | f | gh,ha,ab,bc,cd,de,ef |
|
| g | f | gh,ha,ab,bc,cd,de,ef |
|
||||||
| h | g | ha,ab,bc,cd,de,ef,fg |
|
| h | g | ha,ab,bc,cd,de,ef,fg |
|
||||||
| a | h | ab,bc,cd,de,ef,fg,gh |
|
| a | h | ab,bc,cd,de,ef,fg,gh |
|
||||||
|
@ -3,13 +3,13 @@ Feature: Durations
|
|||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
|
|
||||||
Scenario: Duration of ways
|
Scenario: Duration of ways
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | | | | f |
|
| a | b | | | | f |
|
||||||
| | | | e | | |
|
| | | | e | | |
|
||||||
| | c | | | d | |
|
| | c | | | d | |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | highway | duration |
|
| nodes | highway | duration |
|
||||||
| ab | primary | 0:01 |
|
| ab | primary | 0:01 |
|
||||||
@ -23,9 +23,9 @@ Feature: Durations
|
|||||||
| a | b | ab | 100m +-1 | 60s +-1 |
|
| a | b | ab | 100m +-1 | 60s +-1 |
|
||||||
| b | c | bc | 200m +-1 | 600s +-1 |
|
| b | c | bc | 200m +-1 | 600s +-1 |
|
||||||
| c | d | cd | 300m +-1 | 3600s +-1 |
|
| c | d | cd | 300m +-1 | 3600s +-1 |
|
||||||
| d | e | de | 144m +-2 | 36000s +-1 |
|
| d | e | de | 141m +-2 | 36000s +-1 |
|
||||||
| e | f | ef | 224m +-2 | 3723s +-1 |
|
| e | f | ef | 224m +-2 | 3723s +-1 |
|
||||||
|
|
||||||
@todo
|
@todo
|
||||||
Scenario: Partial duration of ways
|
Scenario: Partial duration of ways
|
||||||
Given the node map
|
Given the node map
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
@routing @testbot @opposite
|
@routing @testbot @opposite
|
||||||
Feature: Separate settings for forward/backward direction
|
Feature: Separate settings for forward/backward direction
|
||||||
|
|
||||||
Background:
|
Background:
|
||||||
Given the profile "testbot"
|
Given the profile "testbot"
|
||||||
|
|
||||||
Scenario: Testbot - Going against the flow
|
Scenario: Testbot - Going against the flow
|
||||||
Given the node map
|
Given the node map
|
||||||
| a | b | c | d |
|
| a | b | c | d |
|
||||||
|
|
||||||
And the ways
|
And the ways
|
||||||
| nodes | highway |
|
| nodes | highway |
|
||||||
| abcd | river |
|
| abcd | river |
|
||||||
|
|
||||||
When I route I should get
|
When I route I should get
|
||||||
| from | to | route | distance | time |
|
| from | to | route | distance | time |
|
||||||
| a | d | abcd | 300 +- 1m | 30s |
|
| a | d | abcd | 300 +- 1m | 31s |
|
||||||
| d | a | abcd | 300 +- 1m | 68s |
|
| d | a | abcd | 300 +- 1m | 68s |
|
Loading…
Reference in New Issue
Block a user