Cucumber test for destination:ref and no destination=*

This commit is contained in:
Daniel J. Hofmann 2016-05-02 11:29:14 +02:00 committed by Patrick Niklaus
parent 363d2145bd
commit a5a7a03fa0
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -14,6 +14,7 @@ Feature: Destination Signs
| k | l | | k | l |
| m | n | | m | n |
| o | p | | o | p |
| q | r |
And the ways And the ways
| nodes | name | ref | destination | destination:ref | oneway | # | | nodes | name | ref | destination | destination:ref | oneway | # |
@ -25,6 +26,7 @@ Feature: Destination Signs
| kl | KL | E1 | Berlin | A1 | yes | | | kl | KL | E1 | Berlin | A1 | yes | |
| mn | MN | | Berlin;Hamburg | A1;A2 | yes | | | mn | MN | | Berlin;Hamburg | A1;A2 | yes | |
| op | OP | | Berlin;Hamburg | A1;A2 | no | mis-tagged destination: not a oneway | | op | OP | | Berlin;Hamburg | A1;A2 | no | mis-tagged destination: not a oneway |
| qr | QR | | | A1;A2 | yes | |
When I route I should get When I route I should get
| from | to | route | # | | from | to | route | # |
@ -36,3 +38,4 @@ Feature: Destination Signs
| k | l | KL (E1),KL (E1) | | | k | l | KL (E1),KL (E1) | |
| m | n | MN (A1, A2: Berlin, Hamburg),MN (A1, A2: Berlin, Hamburg) | | | m | n | MN (A1, A2: Berlin, Hamburg),MN (A1, A2: Berlin, Hamburg) | |
| o | p | OP,OP | guard against mis-tagging | | o | p | OP,OP | guard against mis-tagging |
| q | r | QR (A1, A2),QR (A1, A2) | |