[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.
This commit is contained in:
@@ -142,5 +142,5 @@ TEST(Stringify, Layout) {
|
||||
SymbolLayoutProperties::Unevaluated layout;
|
||||
layout.get<SymbolAvoidEdges>() = true;
|
||||
layout.get<IconPadding>() = 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}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user