From 2e6b7652d93c66b54cfb5526e97689917f373e2b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 17 Sep 2015 17:57:25 +0200 Subject: 100% test coverage for Stations.pm \o/ --- t/21-iris-stations.t | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'); @@ -34,6 +34,12 @@ is_deeply( 'get_station: exact match by name is case insensitive' ); +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') ], -- cgit v1.2.3