diff --git a/src/pg/test/expected/41_observatory_augmentation_test.out b/src/pg/test/expected/41_observatory_augmentation_test.out index 959549c..8311660 100644 --- a/src/pg/test/expected/41_observatory_augmentation_test.out +++ b/src/pg/test/expected/41_observatory_augmentation_test.out @@ -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) diff --git a/src/pg/test/sql/41_observatory_augmentation_test.sql b/src/pg/test/sql/41_observatory_augmentation_test.sql index 3370e78..49513c6 100644 --- a/src/pg/test/sql/41_observatory_augmentation_test.sql +++ b/src/pg/test/sql/41_observatory_augmentation_test.sql @@ -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',