diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-17 17:57:25 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-17 17:57:25 +0200 |
commit | 2e6b7652d93c66b54cfb5526e97689917f373e2b (patch) | |
tree | dd3e81927988818d94bbe05ccb0fea0122d43fa9 /t/21-iris-stations.t | |
parent | cc56f5f6bb3b70b9b360c27f6a299bb985c1c0f3 (diff) |
100% test coverage for Stations.pm \o/
Diffstat (limited to 't/21-iris-stations.t')
-rw-r--r-- | t/21-iris-stations.t | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/t/21-iris-stations.t b/t/21-iris-stations.t index b346525..934a0a8 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 => 11; +use Test::More tests => 12; BEGIN { use_ok('Travel::Status::DE::IRIS::Stations'); @@ -35,6 +35,12 @@ is_deeply( ); is_deeply( + [ [ 'EESD', 'Essen Süd' ] ], + [ Travel::Status::DE::IRIS::Stations::get_station('essen sued') ], + 'get_station: exact match with normalization (1)' +); + +is_deeply( [ [ 'EEST', 'Essen-Steele' ] ], [ Travel::Status::DE::IRIS::Stations::get_station('Essen-Steele') ], 'get_station: exact match by name works by shortest prefix' |