unit test geojson - only expect CHECK_THROW when *.index is not present. Bounding box extractor parser is not strict in the sense that it doesn't require input to be fully consumed (i.e it can handle extra traling characters).

This commit is contained in:
artemp 2015-10-21 11:33:24 +01:00
parent 5cb2b8a77a
commit 9f439d1e2e

View file

@ -400,7 +400,7 @@ TEST_CASE("geojson") {
msg << "testcase: create index " << create_index << " cache-features " << cache_features;
params["cache-features"] = cache_features;
INFO(msg.str());
CHECK_THROWS(mapnik::datasource_cache::instance().create(params));
if (!create_index) CHECK_THROWS(mapnik::datasource_cache::instance().create(params));
}
// cleanup