summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-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'