X-Git-Url: http://git.freeside.biz/gitweb/?p=Geo-USCensus-Geocoding.git;a=blobdiff_plain;f=t%2F01-lookup.t;fp=t%2F01-lookup.t;h=6a3fb156783d6f89e0f1cb1c172f463ec0071fc5;hp=ad780e225a19889e7793ee6efb085a63e16dda53;hb=c16e8ca7ab01db1321d407a8eba212440b0c97c9;hpb=83646ffc2d229a706bdf3f90bf3cc8834c03106f 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);