summaryrefslogtreecommitdiff
path: root/t/01-lookup.t
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-03-04 12:10:04 -0800
committerMark Wells <mark@freeside.biz>2015-03-04 12:10:04 -0800
commitc16e8ca7ab01db1321d407a8eba212440b0c97c9 (patch)
tree91129c285ec04914f2f33198cde83a69900016e5 /t/01-lookup.t
parent83646ffc2d229a706bdf3f90bf3cc8834c03106f (diff)
switch to CSV API for better reliability, prepare 0.01 release
Diffstat (limited to 't/01-lookup.t')
-rw-r--r--t/01-lookup.t8
1 files changed, 4 insertions, 4 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);