adds another test on different types of inputs

This commit is contained in:
Andy Eschbacher
2016-05-26 13:28:56 -04:00
parent 3502282835
commit 49d584822c
2 changed files with 11 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ t
obs_getmeasurebyid_cartodb_census_tract
t
(1 row)
obs_getmeasurebyid_null_boundary_null_timespan
t
(1 row)
obs_getmeasurebyid_cartodb_block_group
t
(1 row)

View File

@@ -212,6 +212,14 @@ SELECT (cdb_observatory.OBS_GetMeasureById(
'2010 - 2014'
) - 3241) / 3241 < 0.0001 As OBS_GetMeasureById_cartodb_census_tract;
-- OBS_GetMeasureById tests
SELECT cdb_observatory.OBS_GetMeasureById(
'36047048500',
'us.census.acs.B01003001',
NULL,
NULL
) IS NULL As OBS_GetMeasureById_null_boundary_null_timespan;
SELECT (cdb_observatory.OBS_GetMeasureById(
'360470485002',
'us.census.acs.B01003001',