Loading t/21-iris-stations.t +50 −29 Original line number Diff line number Diff line Loading @@ -84,7 +84,12 @@ is_deeply( ); is_deeply( [ map { [$_->[0][0], $_->[0][1]] } Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862) ], [ map { [ $_->[0][0], $_->[0][1] ] } Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862 ) ], [ [ 'EESD', 'Essen Süd' ], [ 'EE', 'Essen Hbf' ], Loading @@ -100,14 +105,30 @@ is_deeply( 'get_station_by_location: 10 matches for Foobar' ); is(scalar Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1), 1, 'get_station_by_location(Foobar): only one match'); is( scalar Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ), 1, 'get_station_by_location(Foobar): only one match' ); is_deeply( (Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1))[0][0], ( Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ) )[0][0], [ 'EESD', 'Essen Süd', 8001897, 7.023098, 51.439295 ], 'get_station_by_location(Foobar): correct location data' ); delta_ok((Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1))[0][1], 0.127234298397033, 'get_station_by_location(Foobar): correct distance'); delta_ok( ( Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ) )[0][1], 0.127234298397033, 'get_station_by_location(Foobar): correct distance' ); Loading
t/21-iris-stations.t +50 −29 Original line number Diff line number Diff line Loading @@ -84,7 +84,12 @@ is_deeply( ); is_deeply( [ map { [$_->[0][0], $_->[0][1]] } Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862) ], [ map { [ $_->[0][0], $_->[0][1] ] } Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862 ) ], [ [ 'EESD', 'Essen Süd' ], [ 'EE', 'Essen Hbf' ], Loading @@ -100,14 +105,30 @@ is_deeply( 'get_station_by_location: 10 matches for Foobar' ); is(scalar Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1), 1, 'get_station_by_location(Foobar): only one match'); is( scalar Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ), 1, 'get_station_by_location(Foobar): only one match' ); is_deeply( (Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1))[0][0], ( Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ) )[0][0], [ 'EESD', 'Essen Süd', 8001897, 7.023098, 51.439295 ], 'get_station_by_location(Foobar): correct location data' ); delta_ok((Travel::Status::DE::IRIS::Stations::get_station_by_location(7.02458, 51.43862, 1))[0][1], 0.127234298397033, 'get_station_by_location(Foobar): correct distance'); delta_ok( ( Travel::Status::DE::IRIS::Stations::get_station_by_location( 7.02458, 51.43862, 1 ) )[0][1], 0.127234298397033, 'get_station_by_location(Foobar): correct distance' );