Skip to content

Commit

Permalink
Check result is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 25, 2020
1 parent cc6a78d commit f7f4280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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 => 54;
use Test::Most tests => 55;
use Test::Number::Delta;
use Test::Carp;
use Test::Deep;
Expand Down Expand Up @@ -55,7 +55,7 @@ OPENADDR: {
}

$location = $geo_coder->geocode('1363 Kelly Road, Coal City, Owen, Indiana, USA');
# ok(defined($location));
ok(defined($location));
# diag(Data::Dumper->new([$location])->Dump());
cmp_deeply($location,
methods('lat' => num(39.27, 1e-2), 'long' => num(-87.03, 1e-2)));
Expand Down Expand Up @@ -216,7 +216,7 @@ OPENADDR: {
ok(ref($location) eq 'Geo::Location::Point');
} else {
diag('Author tests not required for installation');
skip('Author tests not required for installation', 51);
skip('Author tests not required for installation', 52);
}

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

0 comments on commit f7f4280

Please sign in to comment.