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 Diff line number Diff line
@@ -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') ],