fixed function call signature

This commit is contained in:
Lukas Woehrl
2016-12-23 22:53:08 +01:00
parent d44ebab006
commit f9ffe89cbd
5 changed files with 129 additions and 129 deletions

View File

@@ -30,7 +30,7 @@ TEST(YogaTest, copy_style_modified) {
const YGNodeRef node1 = YGNodeNew();
YGNodeStyleSetFlexDirection(node1, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node1, YGPx(10));
YGNodeStyleSetMaxHeight(node1, 10);
YGNodeCopyStyle(node0, node1);
ASSERT_TRUE(YGNodeIsDirty(node0));
@@ -44,13 +44,13 @@ TEST(YogaTest, copy_style_modified) {
TEST(YogaTest, copy_style_modified_same) {
const YGNodeRef node0 = YGNodeNew();
YGNodeStyleSetFlexDirection(node0, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node0, YGPx(10));
YGNodeStyleSetMaxHeight(node0, 10);
YGNodeCalculateLayout(node0, YGUndefined, YGUndefined, YGDirectionLTR);
ASSERT_FALSE(YGNodeIsDirty(node0));
const YGNodeRef node1 = YGNodeNew();
YGNodeStyleSetFlexDirection(node1, YGFlexDirectionRow);
YGNodeStyleSetMaxHeight(node1, YGPx(10));
YGNodeStyleSetMaxHeight(node1, 10);
YGNodeCopyStyle(node0, node1);
ASSERT_FALSE(YGNodeIsDirty(node0));