From 33cfd080c2ce0f2ed0c9ee3102cedc4baedf0d8c Mon Sep 17 00:00:00 2001 From: Ander Conselvan de Oliveira Date: Tue, 2 Apr 2019 11:59:13 +0300 Subject: [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. --- test/style/conversion/function.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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()); } -- cgit v1.2.1