From 34dddb5db65fefc5c36e8b99b9692dbcc14d8642 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 1 Aug 2010 11:30:21 +0200 Subject: Move tests to t/, re-structure the directory while at it --- t/out/ambiguous | 9 ++++++ t/out/e_hbf_b_hbf.ice | 62 ++++++++++++++++++++++++++++++++++++++++ t/out/e_hbf_b_hbf.ice.ignore_all | 61 +++++++++++++++++++++++++++++++++++++++ t/out/e_hbf_du_hbf.ice | 14 +++++++++ t/out/e_hbf_mh_hbf | 13 +++++++++ t/out/e_hbf_mh_hbf.ignore_none | 16 +++++++++++ t/out/e_martinstr_e_florastr | 18 ++++++++++++ t/out/e_werden_e_hbf | 19 ++++++++++++ t/out/invalid_input | 1 + t/out/no_connections | 6 ++++ 10 files changed, 219 insertions(+) create mode 100644 t/out/ambiguous create mode 100644 t/out/e_hbf_b_hbf.ice create mode 100644 t/out/e_hbf_b_hbf.ice.ignore_all create mode 100644 t/out/e_hbf_du_hbf.ice create mode 100644 t/out/e_hbf_mh_hbf create mode 100644 t/out/e_hbf_mh_hbf.ignore_none create mode 100644 t/out/e_martinstr_e_florastr create mode 100644 t/out/e_werden_e_hbf create mode 100644 t/out/invalid_input create mode 100644 t/out/no_connections (limited to 't/out') diff --git a/t/out/ambiguous b/t/out/ambiguous new file mode 100644 index 0000000..0dd2043 --- /dev/null +++ b/t/out/ambiguous @@ -0,0 +1,9 @@ +Ambiguous input for name_origin + Bredeney + Bredeney Friedhof + Bredeneyer Kreuz +Ambiguous input for name_destination + Werden Brücke + Werden S + Werdener Markt + Werdener Str. diff --git a/t/out/e_hbf_b_hbf.ice b/t/out/e_hbf_b_hbf.ice new file mode 100644 index 0000000..d49f10b --- /dev/null +++ b/t/out/e_hbf_b_hbf.ice @@ -0,0 +1,62 @@ +11:23 ab Essen Hauptbahnhof: Gleis 4 ICE 547 InterCityExpress Berlin Ostbahnhof +12:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +12:11 ab Hamm (Westf): Gleis 5 ICE 557 InterCityExpress Berlin Ostbahnhof +13:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +13:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 547 InterCityExpress Berlin Ostbahnhof +15:08 an Berlin Hbf: Gleis 12 D - G + +------ + +12:23 ab Essen Hauptbahnhof: Gleis 4 ICE 849 InterCityExpress Berlin Ostbahnhof +13:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +13:11 ab Hamm (Westf): Gleis 5 ICE 859 InterCityExpress Berlin Ostbahnhof +14:31 an Hannover Hauptbahnhof: Gleis 10 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:34 ab Hannover Hauptbahnhof: Gleis 10 ICE 849 InterCityExpress Berlin Ostbahnhof +16:11 an Berlin Hbf: Gleis 12 A - D + +------ + +13:23 ab Essen Hauptbahnhof: Gleis 6 ICE 549 InterCityExpress Berlin Ostbahnhof +14:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:11 ab Hamm (Westf): Gleis 5 ICE 559 InterCityExpress Berlin Ostbahnhof +15:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +15:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 549 InterCityExpress Berlin Ostbahnhof +16:54 an Berlin-Spandau: Gleis 6 A - C + +# Linie KBS 202: SnackPoint/Imbiss im Zug +17:03 ab Berlin-Spandau IC 145 InterCity Berlin Hbf +17:03 an Berlin Hbf + +------ + +13:23 ab Essen Hauptbahnhof: Gleis 6 ICE 549 InterCityExpress Berlin Ostbahnhof +14:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:11 ab Hamm (Westf): Gleis 5 ICE 559 InterCityExpress Berlin Ostbahnhof +15:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +15:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 549 InterCityExpress Berlin Ostbahnhof +17:08 an Berlin Hbf: Gleis 12 A - D + diff --git a/t/out/e_hbf_b_hbf.ice.ignore_all b/t/out/e_hbf_b_hbf.ice.ignore_all new file mode 100644 index 0000000..5c20c5d --- /dev/null +++ b/t/out/e_hbf_b_hbf.ice.ignore_all @@ -0,0 +1,61 @@ +11:23 ab Essen Hauptbahnhof: Gleis 4 ICE 547 InterCityExpress Berlin Ostbahnhof +12:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +12:11 ab Hamm (Westf): Gleis 5 ICE 557 InterCityExpress Berlin Ostbahnhof +13:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +13:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 547 InterCityExpress Berlin Ostbahnhof +15:08 an Berlin Hbf: Gleis 12 D - G + +------ + +12:23 ab Essen Hauptbahnhof: Gleis 4 ICE 849 InterCityExpress Berlin Ostbahnhof +13:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +13:11 ab Hamm (Westf): Gleis 5 ICE 859 InterCityExpress Berlin Ostbahnhof +14:31 an Hannover Hauptbahnhof: Gleis 10 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:34 ab Hannover Hauptbahnhof: Gleis 10 ICE 849 InterCityExpress Berlin Ostbahnhof +16:11 an Berlin Hbf: Gleis 12 A - D + +------ + +13:23 ab Essen Hauptbahnhof: Gleis 6 ICE 549 InterCityExpress Berlin Ostbahnhof +14:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:11 ab Hamm (Westf): Gleis 5 ICE 559 InterCityExpress Berlin Ostbahnhof +15:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +15:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 549 InterCityExpress Berlin Ostbahnhof +16:54 an Berlin-Spandau: Gleis 6 A - C + +17:03 ab Berlin-Spandau IC 145 InterCity Berlin Hbf +17:03 an Berlin Hbf + +------ + +13:23 ab Essen Hauptbahnhof: Gleis 6 ICE 549 InterCityExpress Berlin Ostbahnhof +14:07 an Hamm (Westf): Gleis 5 E-H + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +14:11 ab Hamm (Westf): Gleis 5 ICE 559 InterCityExpress Berlin Ostbahnhof +15:34 an Hannover Hauptbahnhof: Gleis 9 + +# nicht umsteigen, +# Weiterfahrt im selben Fahrzeug möglich +15:37 ab Hannover Hauptbahnhof: Gleis 9 ICE 549 InterCityExpress Berlin Ostbahnhof +17:08 an Berlin Hbf: Gleis 12 A - D + diff --git a/t/out/e_hbf_du_hbf.ice b/t/out/e_hbf_du_hbf.ice new file mode 100644 index 0000000..7488158 --- /dev/null +++ b/t/out/e_hbf_du_hbf.ice @@ -0,0 +1,14 @@ +# Bordrestaurant +11:59 ab Essen Hauptbahnhof: Gleis 1 IC 2113 InterCity Stuttgart Hauptbahnhof (oben) +12:10 an Duisburg Hbf: Gleis 4 + +------ + +12:08 ab Essen Hauptbahnhof: Gleis 2 R-Bahn RE1 Aachen Hbf +12:21 an Duisburg Hbf: Gleis 4 + +------ + +12:15 ab Essen Hauptbahnhof: Gleis 7 S-Bahn S1 Solingen Hbf +12:33 an Duisburg Hbf: Gleis 5 + diff --git a/t/out/e_hbf_mh_hbf b/t/out/e_hbf_mh_hbf new file mode 100644 index 0000000..92be25c --- /dev/null +++ b/t/out/e_hbf_mh_hbf @@ -0,0 +1,13 @@ +11:55 ab Essen Hauptbahnhof: Gleis 7 S-Bahn S1 Solingen Hbf +12:05 an Mülheim Hbf: Gleis 5 + +------ + +12:08 ab Essen Hauptbahnhof: Gleis 2 R-Bahn RE1 Aachen Hbf +12:13 an Mülheim Hbf: Gleis 6 + +------ + +12:15 ab Essen Hauptbahnhof: Gleis 7 S-Bahn S1 Solingen Hbf +12:25 an Mülheim Hbf: Gleis 5 + diff --git a/t/out/e_hbf_mh_hbf.ignore_none b/t/out/e_hbf_mh_hbf.ignore_none new file mode 100644 index 0000000..5375fe3 --- /dev/null +++ b/t/out/e_hbf_mh_hbf.ignore_none @@ -0,0 +1,16 @@ +# Linie S1: Fahrradmitnahme begrenzt möglich +11:55 ab Essen Hauptbahnhof: Gleis 7 S-Bahn S1 Solingen Hbf +12:05 an Mülheim Hbf: Gleis 5 + +------ + +# Fahrradmitnahme begrenzt möglich +12:08 ab Essen Hauptbahnhof: Gleis 2 R-Bahn RE1 Aachen Hbf +12:13 an Mülheim Hbf: Gleis 6 + +------ + +# Linie S1: Fahrradmitnahme begrenzt möglich +12:15 ab Essen Hauptbahnhof: Gleis 7 S-Bahn S1 Solingen Hbf +12:25 an Mülheim Hbf: Gleis 5 + diff --git a/t/out/e_martinstr_e_florastr b/t/out/e_martinstr_e_florastr new file mode 100644 index 0000000..9808d64 --- /dev/null +++ b/t/out/e_martinstr_e_florastr @@ -0,0 +1,18 @@ +11:58 ab Essen Martinstr.: Bstg. 2 Straßenbahn 101 Bredeney +11:59 an Essen Florastr.: Bstg. 2 + +------ + +12:05 ab Essen Martinstr.: Bstg. 2 Straßenbahn 107 Bredeney +12:06 an Essen Florastr.: Bstg. 2 + +------ + +12:08 ab Essen Martinstr.: Bstg. 2 Straßenbahn 101 Bredeney +12:09 an Essen Florastr.: Bstg. 2 + +------ + + ab Essen Martinstr. Fußweg ca. 12 Minuten + an Essen Florastr. + diff --git a/t/out/e_werden_e_hbf b/t/out/e_werden_e_hbf new file mode 100644 index 0000000..1ccb8f1 --- /dev/null +++ b/t/out/e_werden_e_hbf @@ -0,0 +1,19 @@ +11:46 ab Essen Werden S: Bstg. 4 Niederflurbus 169 Margarethenhöhe +11:53 an Essen Bredeney: Bstg. 3 + +11:57 ab Essen Bredeney: Bstg. 5 Straßenbahn 107 Gelsenkirchen Hbf +12:08 an Essen Hauptbahnhof: Bstg. 1 + +------ + +12:01 ab Essen Werden S: Gleis 1 S-Bahn S6 Essen Hauptbahnhof +12:12 an Essen Hauptbahnhof: Gleis 12 + +------ + +12:06 ab Essen Werden S: Bstg. 4 Niederflurbus 169 Margarethenhöhe +12:13 an Essen Bredeney: Bstg. 3 + +12:17 ab Essen Bredeney: Bstg. 5 Straßenbahn 107 Gelsenkirchen Hbf +12:28 an Essen Hauptbahnhof: Bstg. 1 + diff --git a/t/out/invalid_input b/t/out/invalid_input new file mode 100644 index 0000000..5686f5d --- /dev/null +++ b/t/out/invalid_input @@ -0,0 +1 @@ +efa.vrr.de returned no connections, check your input data. diff --git a/t/out/no_connections b/t/out/no_connections new file mode 100644 index 0000000..f464ad3 --- /dev/null +++ b/t/out/no_connections @@ -0,0 +1,6 @@ +Looks like efa.vrr.de showed an error. +I will now try to dump the error message: + +Leider konnte für Ihre Anfrage keine Verbindung gefunden werden! Bitte ändern Sie Ihre Eingabe (z.B. Fußwegezeit in den Mobilitätseinstellungen) oder starten Sie eine neue Anfrage! + + -- cgit v1.2.3