| 31 | } |
| 32 | |
| 33 | void expectParserResult( |
| 34 | const std::string& json, |
| 35 | const std::function<void(const GeoJsonDocument&)>& checkFunc) { |
| 36 | Result<GeoJsonDocument> doc = |
| 37 | GeoJsonDocument::fromGeoJson(stringToBytes(json)); |
| 38 | CHECK(!doc.errors.hasErrors()); |
| 39 | REQUIRE(doc.value); |
| 40 | checkFunc(*doc.value); |
| 41 | } |
| 42 | } // namespace |
| 43 | |
| 44 | TEST_CASE("Parse Point primitives") { |
no test coverage detected