From f06afc08e82be0eccbd3b438470503bedaac69d2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 14 Sep 2015 21:07:10 +0200 Subject: re-enable substring matching -> use both for station lookup --- t/21-iris-stations.t | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 't') diff --git a/t/21-iris-stations.t b/t/21-iris-stations.t index c440fd0..b346525 100644 --- a/t/21-iris-stations.t +++ b/t/21-iris-stations.t @@ -2,6 +2,7 @@ use strict; use warnings; use 5.014; +use utf8; use Test::More tests => 11; @@ -59,10 +60,12 @@ is_deeply( is_deeply( [ - [ 'NKL', 'Kirchenlaibach' ], - [ 'KM', 'M\'gladbach Hbf' ], - [ 'XSRC', 'Reichenbach Kt' ] + [ 'EEBE', 'E-Bergeborbeck' ], + [ 'EEBB', 'E-Borbeck' ], + [ 'EEBS', 'E-Borbeck Süd' ], + [ 'EGAR', 'Garbeck' ], + [ 'EWBC', 'Wolbeck' ], ], - [ Travel::Status::DE::IRIS::Stations::get_station('Moenchengladbach Hbf') ], - 'get_station: partial match works (several results for very fuzzy match)' + [ Travel::Status::DE::IRIS::Stations::get_station('Borbeck') ], + 'get_station: partial match with substring and levenshtein' ); -- cgit v1.2.3