diff options
author | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-04-02 11:59:13 +0300 |
---|---|---|
committer | Ander Conselvan de Oliveira <ander.deoliveira@mapbox.com> | 2019-05-21 12:14:22 +0300 |
commit | 33cfd080c2ce0f2ed0c9ee3102cedc4baedf0d8c (patch) | |
tree | 61524ba15c720b2957454f9841856d4618330329 /test/style/conversion | |
parent | 11055f9a8887eec8c69b14cd1417c29abce43d89 (diff) | |
download | qtlocation-mapboxgl-33cfd080c2ce0f2ed0c9ee3102cedc4baedf0d8c.tar.gz |
[core] Fix most identity function with default legacy expression tests
Add handling of default value to the conversion of legacy identity
functions. The color and enum tests still don't pass though.
Diffstat (limited to 'test/style/conversion')
-rw-r--r-- | test/style/conversion/function.test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/style/conversion/function.test.cpp b/test/style/conversion/function.test.cpp index 93a9a7e608..5c96e5124b 100644 --- a/test/style/conversion/function.test.cpp +++ b/test/style/conversion/function.test.cpp @@ -108,5 +108,5 @@ TEST(StyleConversion, FormattedIdentityFunction) { auto fn1 = parseFunction(R"({ "property": "name", "type": "identity" })"); ASSERT_TRUE(bool(fn1)); ASSERT_TRUE(fn1->isExpression()); - ASSERT_EQ(fn1->asExpression().getExpression(), *format(get(literal("name")))); + ASSERT_EQ(fn1->asExpression().getExpression().serialize(), format(get(literal("name")))->serialize()); } |