summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-09 21:03:27 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-09 21:03:27 +0200
commitd104a58d94e68726d5d4cd80d0a43ef3822774dc (patch)
tree546d0a23140f5929fb37a7587f828f10662d5cf4 /t
parentdce8472ad375624287c7e5c1dd80ea0d53e7e678 (diff)
t/21: Fix is_deeply got/expected order
Diffstat (limited to 't')
-rw-r--r--t/21-iris-stations.t18
1 files changed, 9 insertions, 9 deletions
diff --git a/t/21-iris-stations.t b/t/21-iris-stations.t
index 651fd32..2e65e45 100644
--- a/t/21-iris-stations.t
+++ b/t/21-iris-stations.t
@@ -17,60 +17,60 @@ my @emptypairs = grep { not( length( $_->[0] ) and length( $_->[1] ) ) }
is_deeply( \@emptypairs, [], 'no stations with empty code / name' );
is_deeply(
- [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('EE') ],
+ [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
'get_station: exact match by DS100 works'
);
is_deeply(
- [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('Essen Hbf') ],
+ [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
'get_station: exact match by name works'
);
is_deeply(
- [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('essen hbf') ],
+ [ [ 'EE', 'Essen Hbf', 8000098, 7.014793, 51.451355 ] ],
'get_station: exact match by name is case insensitive'
);
is_deeply(
- [ [ 'EESD', 'Essen Süd', 8001897, 7.023098, 51.439295 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('essen sued') ],
+ [ [ 'EESD', 'Essen Süd', 8001897, 7.023098, 51.439295 ] ],
'get_station: exact match with normalization (1)'
);
is_deeply(
- [ [ 'EEST', 'Essen-Steele', 8000099, 7.075552, 51.450684 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('Essen-Steele') ],
+ [ [ 'EEST', 'Essen-Steele', 8000099, 7.075552, 51.450684 ] ],
'get_station: exact match by name works by shortest prefix'
);
is_deeply(
- [ [ 'EEST', 'Essen-Steele', 8000099, 7.075552, 51.450684 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('essen-steele') ],
+ [ [ 'EEST', 'Essen-Steele', 8000099, 7.075552, 51.450684 ] ],
'get_station: exact match by name (shortest prefix) is case insensitive'
);
is_deeply(
- [ [ 'KM', 'Mönchengladbach Hbf', 8000253, 6.446111, 51.196583 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('mönchengladbach hf') ],
+ [ [ 'KM', 'Mönchengladbach Hbf', 8000253, 6.446111, 51.196583 ] ],
'get_station: close fuzzy match works (one result)'
);
is_deeply(
- [ [ 'KM', 'Mönchengladbach Hbf', 8000253, 6.446111, 51.196583 ] ],
[ Travel::Status::DE::IRIS::Stations::get_station('MönchenGladbach BBF') ],
+ [ [ 'KM', 'Mönchengladbach Hbf', 8000253, 6.446111, 51.196583 ] ],
'get_station: close fuzzy match is case insensitive'
);
is_deeply(
+ [ Travel::Status::DE::IRIS::Stations::get_station('Borbeck') ],
[
[ 'EEBE', 'Essen-Bergeborbeck', 8001901, 6.977782, 51.480201 ],
[ 'EEBB', 'Essen-Borbeck', 8001902, 6.948795, 51.472713 ],
[ 'EEBS', 'Essen-Borbeck Süd', 8005031, 6.953922, 51.461673 ],
[ 'EGAR', 'Garbeck', 8002180, 7.839903, 51.321459 ],
],
- [ Travel::Status::DE::IRIS::Stations::get_station('Borbeck') ],
'get_station: partial match with substring and levenshtein'
);