summaryrefslogtreecommitdiff
path: root/test/style/expression
diff options
context:
space:
mode:
authorLauren Budorick <lauren@mapbox.com>2018-05-14 12:38:14 -0700
committerGitHub <noreply@github.com>2018-05-14 12:38:14 -0700
commit62c875e01b07197024e3806e8b2882160ce1195c (patch)
treedbc46834fbc53d4ac70b4b8cc28ef6ac434198c0 /test/style/expression
parent07ad29d30da44ded2bf40418b3625fecfb817399 (diff)
downloadqtlocation-mapboxgl-62c875e01b07197024e3806e8b2882160ce1195c.tar.gz
[core] Rework spec function/expression taxonomy
Ports https://github.com/mapbox/mapbox-gl-js/pull/6521, updating codegen scripts to parse new expression taxonomy.
Diffstat (limited to 'test/style/expression')
-rw-r--r--test/style/expression/expression.test.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/style/expression/expression.test.cpp b/test/style/expression/expression.test.cpp
index 9d5e172888..709624a50f 100644
--- a/test/style/expression/expression.test.cpp
+++ b/test/style/expression/expression.test.cpp
@@ -24,12 +24,12 @@ TEST(Expression, IsExpression) {
spec["expression_name"].IsObject() &&
spec["expression_name"].HasMember("values") &&
spec["expression_name"]["values"].IsObject());
-
+
const auto& allExpressions = spec["expression_name"]["values"];
-
+
for(auto& entry : allExpressions.GetObject()) {
const std::string name { entry.name.GetString(), entry.name.GetStringLength() };
- if (name == "collator" || name == "line-progress" || name == "resolved-locale") {
+ if (name == "collator" || name == "line-progress" || name == "resolved-locale" || name == "feature-state") {
// Not yet implemented
continue;
}