Another basic test

This commit is contained in:
Rafa de la Torre 2015-10-23 14:19:41 +02:00
parent 491eac38ad
commit 604c4ed615
2 changed files with 12 additions and 0 deletions

View File

@ -11,3 +11,12 @@ SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
ESP |
(2 rows)
-- Check that the geocoding function is callable, should return success = false
SELECT (geocode_admin0_polygons(Array['Spain', 'USA', ''])).*;
q | geom | success
-------+------+---------
| | f
Spain | | f
USA | | f
(3 rows)

View File

@ -6,3 +6,6 @@ CREATE EXTENSION cdb_geocoder_admin0;
-- Check that the synonym function is callable, should return NULL
SELECT (admin0_synonym_lookup(Array['United States', 'ESP'])).*;
-- Check that the geocoding function is callable, should return success = false
SELECT (geocode_admin0_polygons(Array['Spain', 'USA', ''])).*;