summaryrefslogtreecommitdiff
path: root/t/21-iris-stations.t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-14 21:07:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-14 21:07:10 +0200
commitf06afc08e82be0eccbd3b438470503bedaac69d2 (patch)
tree529b6925334f7e928ce8c7dd451588b70b976c14 /t/21-iris-stations.t
parent3cccdc35bc5b4edcc97d486cf9ed50fc7b2ca82a (diff)
re-enable substring matching -> use both for station lookup
Diffstat (limited to 't/21-iris-stations.t')
-rw-r--r--t/21-iris-stations.t13
1 files changed, 8 insertions, 5 deletions
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'
);