test/unittests/simplefeaturecollections/points.cpp
//if this test fails, it could just mean the JSON format changed, not that it is invalid/wrong
if this test fails, it could just mean the JSON format changed, not that it is invalid/wrong
if this test fails it could just mean the JSON format changed not that it is invalid / wrong
TEST(PointCollection, toGeoJSONEmptyCollection) {
	PointCollection points(SpatioTemporalReference::unreferenced());
	std::string expected = R"({"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"UNREFERENCED:0"}},"features":[]})";
	EXPECT_EQ(expected, points.toGeoJSON(false));
}
TEST ( PointCollection , toGeoJSONEmptyCollection ) { PointCollection points ( SpatioTemporalReference :: unreferenced ( ) ) ; std :: string expected = R" ( {"type":"FeatureCollection","crs":{"type":"name","properties":{"name":"UNREFERENCED:0"}},"features":[]} ) " ; EXPECT_EQ ( expected , points . toGeoJSON ( false ) ) ; }
if this test fails, it could just mean the JSON format changed, not that it is invalid/wrong
if this test fails it could just mean the JSON format changed not that it is invalid / wrong