geoson+topojson tests - correct expected test data (ref #3491)
This commit is contained in:
parent
8dca305e7e
commit
5c11fe49f9
2 changed files with 8 additions and 9 deletions
|
@ -701,12 +701,12 @@ TEST_CASE("geojson") {
|
||||||
attr{"description", tr.transcode("Test: \u005C")},
|
attr{"description", tr.transcode("Test: \u005C")},
|
||||||
attr{"double", mapnik::value_double(1.1)},
|
attr{"double", mapnik::value_double(1.1)},
|
||||||
attr{"int", mapnik::value_integer(1)},
|
attr{"int", mapnik::value_integer(1)},
|
||||||
attr{"object", tr.transcode("{name:\"waka\",spaces:\"value with spaces\",int:1,double:1.1,boolean:false"
|
attr{"object", tr.transcode("{\"name\":\"waka\",\"spaces\":\"value with spaces\",\"int\":1,\"double\":1.1,\"boolean\":false"
|
||||||
",NOM_FR:\"Québec\",array:[\"string\",\"value with spaces\",3,1.1,null,true"
|
",\"NOM_FR\":\"Québec\",\"array\":[\"string\",\"value with spaces\",3,1.1,null,true"
|
||||||
",\"Québec\"],another_object:{name:\"nested object\"}}")},
|
",\"Québec\"],\"another_object\":{\"name\":\"nested object\"}}")},
|
||||||
attr{"spaces", tr.transcode("this has spaces")},
|
attr{"spaces", tr.transcode("this has spaces")},
|
||||||
attr{"array", tr.transcode("[\"string\",\"value with spaces\",3,1.1,null,true,"
|
attr{"array", tr.transcode("[\"string\",\"value with spaces\",3,1.1,null,true,"
|
||||||
"\"Québec\",{name:\"object within an array\"},"
|
"\"Québec\",{\"name\":\"object within an array\"},"
|
||||||
"[\"array\",\"within\",\"an\",\"array\"]]")},
|
"[\"array\",\"within\",\"an\",\"array\"]]")},
|
||||||
attr{"empty_array", tr.transcode("[]")},
|
attr{"empty_array", tr.transcode("[]")},
|
||||||
attr{"empty_object", tr.transcode("{}")},
|
attr{"empty_object", tr.transcode("{}")},
|
||||||
|
|
|
@ -48,7 +48,6 @@ bool parse_topology(std::string const& filename, mapnik::topojson::topology & to
|
||||||
return (result && (itr == end));
|
return (result && (itr == end));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("topojson")
|
TEST_CASE("topojson")
|
||||||
|
@ -97,12 +96,12 @@ TEST_CASE("topojson")
|
||||||
attr{"description", tr.transcode("Test: \u005C")},
|
attr{"description", tr.transcode("Test: \u005C")},
|
||||||
attr{"double", mapnik::value_double(1.1)},
|
attr{"double", mapnik::value_double(1.1)},
|
||||||
attr{"int", mapnik::value_integer(1)},
|
attr{"int", mapnik::value_integer(1)},
|
||||||
attr{"object", tr.transcode("{name:\"waka\",spaces:\"value with spaces\",int:1,double:1.1,boolean:false"
|
attr{"object", tr.transcode("{\"name\":\"waka\",\"spaces\":\"value with spaces\",\"int\":1,\"double\":1.1,\"boolean\":false"
|
||||||
",NOM_FR:\"Québec\",array:[\"string\",\"value with spaces\",3,1.1,null,true"
|
",\"NOM_FR\":\"Québec\",\"array\":[\"string\",\"value with spaces\",3,1.1,null,true"
|
||||||
",\"Québec\"],another_object:{name:\"nested object\"}}")},
|
",\"Québec\"],\"another_object\":{\"name\":\"nested object\"}}")},
|
||||||
attr{"spaces", tr.transcode("this has spaces")},
|
attr{"spaces", tr.transcode("this has spaces")},
|
||||||
attr{"array", tr.transcode("[\"string\",\"value with spaces\",3,1.1,null,true,"
|
attr{"array", tr.transcode("[\"string\",\"value with spaces\",3,1.1,null,true,"
|
||||||
"\"Québec\",{name:\"object within an array\"},"
|
"\"Québec\",{\"name\":\"object within an array\"},"
|
||||||
"[\"array\",\"within\",\"an\",\"array\"]]")},
|
"[\"array\",\"within\",\"an\",\"array\"]]")},
|
||||||
attr{"empty_array", tr.transcode("[]")},
|
attr{"empty_array", tr.transcode("[]")},
|
||||||
attr{"empty_object", tr.transcode("{}")},
|
attr{"empty_object", tr.transcode("{}")},
|
||||||
|
|
Loading…
Reference in a new issue