Commit 2e6b7652 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

100% test coverage for Stations.pm \o/

parent cc56f5f6
Loading
Loading
Loading
Loading
+7 −1
Original line number Original line Diff line number Diff line
@@ -4,7 +4,7 @@ use warnings;
use 5.014;
use 5.014;
use utf8;
use utf8;


use Test::More tests => 11;
use Test::More tests => 12;


BEGIN {
BEGIN {
	use_ok('Travel::Status::DE::IRIS::Stations');
	use_ok('Travel::Status::DE::IRIS::Stations');
@@ -34,6 +34,12 @@ is_deeply(
	'get_station: exact match by name is case insensitive'
	'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(
is_deeply(
	[ [ 'EEST', 'Essen-Steele' ] ],
	[ [ 'EEST', 'Essen-Steele' ] ],
	[ Travel::Status::DE::IRIS::Stations::get_station('Essen-Steele') ],
	[ Travel::Status::DE::IRIS::Stations::get_station('Essen-Steele') ],