summaryrefslogtreecommitdiff
path: root/t/02-fail.t
blob: 72fc6dabe863db10ccc87f3e9ad00b2f4fc4a887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!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',
);

is( $result->matches, 0, 'number of matches' );