Skip to content

Commit

Permalink
Openaddresses have moved
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 30, 2020
1 parent 6d53b05 commit d25ae5f
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions t/openaddr.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use warnings;
use strict;
use Test::Most tests => 55;
use Test::Most tests => 54;
use Test::Number::Delta;
use Test::Carp;
use Test::Deep;
Expand Down Expand Up @@ -40,7 +40,7 @@ OPENADDR: {
methods('lat' => num(39.77, 1e-2), 'long' => num(-86.15, 1e-2)));
} else {
cmp_deeply($location,
methods('lat' => num(39.77, 1e-2), 'long' => num(-86.16, 1e-2)));
methods('lat' => num(39.77, 1e-2), 'long' => num(-86.15, 1e-2)));
}

# $location = $geo_coder->geocode(location => '9235 Main St, Richibucto, New Brunswick, Canada');
Expand Down Expand Up @@ -100,13 +100,8 @@ OPENADDR: {

$location = $geo_coder->geocode(location => 'Edmonton, Alberta, Canada');
ok(defined($location));
if($ENV{'WHOSONFIRST_HOME'}) {
cmp_deeply($location,
methods('lat' => num(53.57, 1e-2), 'long' => num(-113.51, 1e-2)));
} else {
cmp_deeply($location,
methods('lat' => num(53.55, 1e-2), 'long' => num(-113.47, 1e-2)));
}
cmp_deeply($location,
methods('lat' => num(53.57, 1e-2), 'long' => num(-113.51, 1e-2)));

$location = $geo_coder->geocode('London, England');
TODO: {
Expand Down Expand Up @@ -218,7 +213,7 @@ OPENADDR: {
ok(ref($location) eq 'Geo::Location::Point');
} else {
diag('Author tests not required for installation');
skip('Author tests not required for installation', 53);
skip('Author tests not required for installation', 52);
}

# my $address = $geo_coder->reverse_geocode(latlng => '51.50,-0.13');
Expand All @@ -238,7 +233,7 @@ OPENADDR: {
});
} else {
diag('Set OPENADDR_HOME to enable openaddresses.io testing');
skip('Set OPENADDR_HOME to enable openaddresses.io testing', 54);
skip('Set OPENADDR_HOME to enable openaddresses.io testing', 53);
}
}
}

0 comments on commit d25ae5f

Please sign in to comment.