summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-11-07 20:43:20 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-11-07 20:43:20 +0100
commitc5bbefa81be609cd9b4ee325d1c226489a020ca6 (patch)
treebdc106ca6f191c59e9c23b7afde30c68a8d2f91c
parenta97807bf3659fc5e34ff6756d804b0d9e0edf5a3 (diff)
EVI/UIC test
-rw-r--r--t/21-iris-stations.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/21-iris-stations.t b/t/21-iris-stations.t
index 1d50ca5..f68e5bb 100644
--- a/t/21-iris-stations.t
+++ b/t/21-iris-stations.t
@@ -4,7 +4,7 @@ use warnings;
use 5.014;
use utf8;
-use Test::More tests => 14;
+use Test::More tests => 15;
BEGIN {
use_ok('Travel::Status::DE::IRIS::Stations');
@@ -23,6 +23,12 @@ is_deeply(
);
is_deeply(
+ [ Travel::Status::DE::IRIS::Stations::get_station(8000098) ],
+ [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
+ 'get_station: exact match by EVA/UIC works'
+);
+
+is_deeply(
[ Travel::Status::DE::IRIS::Stations::get_station('Essen Hbf') ],
[ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
'get_station: exact match by name works'