Automatic lint fixes
Summary: @public A round of automatic lint fixes. Reviewed By: SidharthGuglani Differential Revision: D14590396 fbshipit-source-id: f0b4a0ce503a1d9d46ea7ae788f9f2eac09c2ac7
This commit is contained in:
committed by
Facebook Github Bot
parent
7d7b7b9e18
commit
85352c4e45
@@ -12,21 +12,16 @@ TEST(YogaTest, pre_order_traversal) {
|
||||
YGNodeRef const root_child0 = YGNodeNew();
|
||||
YGNodeRef const root_child1 = YGNodeNew();
|
||||
YGNodeRef const root_child0_child0 = YGNodeNew();
|
||||
|
||||
|
||||
YGNodeSetChildren(root, {root_child0, root_child1});
|
||||
YGNodeInsertChild(root_child0, root_child0_child0, 0);
|
||||
|
||||
|
||||
std::vector<YGNodeRef> visited;
|
||||
YGTraversePreOrder(root, [&visited](YGNodeRef node) {
|
||||
visited.push_back(node);
|
||||
});
|
||||
|
||||
YGTraversePreOrder(
|
||||
root, [&visited](YGNodeRef node) { visited.push_back(node); });
|
||||
|
||||
const std::vector<YGNodeRef> expected = {
|
||||
root,
|
||||
root_child0,
|
||||
root_child0_child0,
|
||||
root_child1
|
||||
};
|
||||
root, root_child0, root_child0_child0, root_child1};
|
||||
ASSERT_EQ(visited, expected);
|
||||
|
||||
YGNodeFreeRecursive(root);
|
||||
|
Reference in New Issue
Block a user