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:
parent
aafc5d6d51
commit
e97759d01b
1 changed files with 1 additions and 8 deletions
|
@ -108,14 +108,7 @@ TEST_CASE("geojson") {
|
||||||
params["type"] = "geojson";
|
params["type"] = "geojson";
|
||||||
params["file"] = "./test/data/json/empty_featurecollection.json";
|
params["file"] = "./test/data/json/empty_featurecollection.json";
|
||||||
params["cache_features"] = cache_features;
|
params["cache_features"] = cache_features;
|
||||||
auto ds = mapnik::datasource_cache::instance().create(params);
|
REQUIRE_THROWS(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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue