update test (ref f44b5ccfd93c0f30b739bc05887412a48771102f #3237 #3238)

This commit is contained in:
artemp 2016-02-25 15:30:36 +01:00
parent f44b5ccfd9
commit 176d3e49c9

View File

@ -663,20 +663,8 @@ TEST_CASE("geojson") {
auto ds = mapnik::datasource_cache::instance().create(params);
REQUIRE(bool(ds));
auto fields = ds->get_descriptor().get_descriptors();
// TODO: this combo (cache_features==false and create_index==false)
// exposes the case where not all field names are reported, which should
// ideally be fixed, but how?
if (cache_features == false && create_index == false)
{
std::initializer_list<std::string> names = {"one"};
REQUIRE_FIELD_NAMES(fields, names);
}
else
{
std::initializer_list<std::string> names = {"one", "two"};
REQUIRE_FIELD_NAMES(fields, names);
}
std::initializer_list<std::string> names = {"one", "two"};
REQUIRE_FIELD_NAMES(fields, names);
}
// cleanup
if (create_index && mapnik::util::exists(filename + ".index"))