From 2489afdd0db97de0664198f5ae64bd94db6b6fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Thu, 2 May 2019 15:25:48 +0200 Subject: [build] change style code generator to sort properties alphabetically JSON keys in our style specification don't have a defined order. This change sorts them alphabetically so that we can rely on the order remaining them same across code generation runs. --- test/style/conversion/stringify.test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/style/conversion/stringify.test.cpp b/test/style/conversion/stringify.test.cpp index 8bc78098cd..4b4ba2766e 100644 --- a/test/style/conversion/stringify.test.cpp +++ b/test/style/conversion/stringify.test.cpp @@ -142,5 +142,5 @@ TEST(Stringify, Layout) { SymbolLayoutProperties::Unevaluated layout; layout.get() = true; layout.get() = 2.0; - ASSERT_EQ(stringify(layout), "{\"symbol-avoid-edges\":true,\"icon-padding\":2.0}"); + ASSERT_EQ(stringify(layout), "{\"icon-padding\":2.0,\"symbol-avoid-edges\":true}"); } -- cgit v1.2.1