geojson test - require throwing on an empty feature collection

(not sure this is correct but needed to preserve 3.0.x behaviour)
This commit is contained in:
Artem Pavlenko 2017-09-11 17:54:54 +01:00
parent aafc5d6d51
commit e97759d01b

View file

@ -108,14 +108,7 @@ TEST_CASE("geojson") {
params["type"] = "geojson";
params["file"] = "./test/data/json/empty_featurecollection.json";
params["cache_features"] = cache_features;
auto ds = mapnik::datasource_cache::instance().create(params);
CHECK(ds != nullptr);
auto fs = all_features(ds);
REQUIRE(!mapnik::is_valid(fs));
while (auto f = fs->next())
{
CHECK(false); // shouldn't get here
}
REQUIRE_THROWS(mapnik::datasource_cache::instance().create(params));
}
}