summaryrefslogtreecommitdiff
path: root/t/02-fail.t
blob: 39b9f1fe4db1a895acca74849ade6ebad4b77aef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!perl -T

use Test::More tests => 1;
use Data::Dumper;
use Geo::USCensus::Geocoding;

diag( "Testing lookup of a known nonexistent address" );
my $result = Geo::USCensus::Geocoding->query(
  street  => '1000 Z St', # there is no Z street
  city    => 'Sacramento',
  state   => 'CA',
  zip     => '95814',
);

ok( !$result->is_match );
diag( $result->content );