diff --git a/features/bearing.feature b/features/bearing.feature index 5e04666b7..f279c764b 100644 --- a/features/bearing.feature +++ b/features/bearing.feature @@ -97,3 +97,44 @@ Feature: Compass bearing When I route I should get | from | to | route | compass | bearing | | a | h | ab,bc,cd,de,ef,fg,gh | N,SE,N,SE,N,SE,N | 0,135,0,135,0,135,0 | + + Scenario: Bearings on an east-west way. + Given the node map + | a | b | c | d | e | f | + + And the ways + | nodes | + | abcdef | + + When I route I should get + | from | to | route | compass | bearing | + | a | b | abcdef | E | 90 | + | a | c | abcdef | E | 90 | + | a | d | abcdef | E | 90 | + | a | e | abcdef | E | 90 | + | a | f | abcdef | E | 90 | + | b | a | abcdef | W | 270 | + | b | c | abcdef | E | 90 | + | b | d | abcdef | E | 90 | + | b | e | abcdef | E | 90 | + | b | f | abcdef | E | 90 | + | c | a | abcdef | W | 270 | + | c | b | abcdef | W | 270 | + | c | d | abcdef | E | 90 | + | c | e | abcdef | E | 90 | + | c | f | abcdef | E | 90 | + | d | a | abcdef | W | 270 | + | d | b | abcdef | W | 270 | + | d | c | abcdef | W | 270 | + | d | e | abcdef | E | 90 | + | d | f | abcdef | E | 90 | + | e | a | abcdef | W | 270 | + | e | b | abcdef | W | 270 | + | e | c | abcdef | W | 270 | + | e | d | abcdef | W | 270 | + | e | f | abcdef | E | 90 | + | f | a | abcdef | W | 270 | + | f | b | abcdef | W | 270 | + | f | c | abcdef | W | 270 | + | f | d | abcdef | W | 270 | + | f | e | abcdef | W | 270 | \ No newline at end of file diff --git a/features/uturn.feature b/features/uturn.feature deleted file mode 100644 index 7578d62b1..000000000 --- a/features/uturn.feature +++ /dev/null @@ -1,43 +0,0 @@ -@uturn @routing -Feature: Routing related to u-turns. - -Scenario: Don't add u-turns when not needed. - Given the node map - | a | b | c | d | e | f | - - And the ways - | nodes | - | abcdef | - - When I route I should get - | from | to | route | compass | bearing | - | a | b | abcdef | E | 90 | - | a | c | abcdef | E | 90 | - | a | d | abcdef | E | 90 | - | a | e | abcdef | E | 90 | - | a | f | abcdef | E | 90 | - | b | a | abcdef | W | 270 | - | b | c | abcdef | E | 90 | - | b | d | abcdef | E | 90 | - | b | e | abcdef | E | 90 | - | b | f | abcdef | E | 90 | - | c | a | abcdef | W | 270 | - | c | b | abcdef | W | 270 | - | c | d | abcdef | E | 90 | - | c | e | abcdef | E | 90 | - | c | f | abcdef | E | 90 | - | d | a | abcdef | W | 270 | - | d | b | abcdef | W | 270 | - | d | c | abcdef | W | 270 | - | d | e | abcdef | E | 90 | - | d | f | abcdef | E | 90 | - | e | a | abcdef | W | 270 | - | e | b | abcdef | W | 270 | - | e | c | abcdef | W | 270 | - | e | d | abcdef | W | 270 | - | e | f | abcdef | E | 90 | - | f | a | abcdef | W | 270 | - | f | b | abcdef | W | 270 | - | f | c | abcdef | W | 270 | - | f | d | abcdef | W | 270 | - | f | e | abcdef | W | 270 |