diff options
Diffstat (limited to 't')
-rw-r--r-- | t/01-lookup.t | 8 | ||||
-rw-r--r-- | t/02-fail.t | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/t/01-lookup.t b/t/01-lookup.t index ad780e2..6a3fb15 100644 --- a/t/01-lookup.t +++ b/t/01-lookup.t @@ -12,8 +12,8 @@ my $result = Geo::USCensus::Geocoding->query( zip => '95814', ); -is( $result->message, '', 'error status' ); -is( $result->matches, 1, 'number of matches' ); -diag($result->match(0)->matchedAddress); -diag('Census tract '.$result->match(0)->censustract); +ok( $result->is_match ); +is( $result->error_message, '', 'error status' ); +diag($result->address); +diag('Census tract '.$result->censustract); diff --git a/t/02-fail.t b/t/02-fail.t index 72fc6da..39b9f1f 100644 --- a/t/02-fail.t +++ b/t/02-fail.t @@ -12,5 +12,6 @@ my $result = Geo::USCensus::Geocoding->query( zip => '95814', ); -is( $result->matches, 0, 'number of matches' ); +ok( !$result->is_match ); +diag( $result->content ); |