|
11 | 11 | // TODO: move this to a fixture based test once it supports parsing negative |
12 | 12 | // values |
13 | 13 | TEST(FlexGap, gap_negative_value) { |
14 | | - const YGConfigRef config = YGConfigNew(); |
| 14 | + YGConfigRef config = YGConfigNew(); |
15 | 15 |
|
16 | | - const YGNodeRef root = YGNodeNewWithConfig(config); |
| 16 | + YGNodeRef root = YGNodeNewWithConfig(config); |
17 | 17 | YGNodeStyleSetFlexDirection(root, YGFlexDirectionRow); |
18 | 18 | YGNodeStyleSetGap(root, YGGutterAll, -20); |
19 | 19 | YGNodeStyleSetHeight(root, 200); |
20 | 20 |
|
21 | | - const YGNodeRef root_child0 = YGNodeNewWithConfig(config); |
| 21 | + YGNodeRef root_child0 = YGNodeNewWithConfig(config); |
22 | 22 | YGNodeStyleSetWidth(root_child0, 20); |
23 | 23 | YGNodeInsertChild(root, root_child0, 0); |
24 | 24 |
|
25 | | - const YGNodeRef root_child1 = YGNodeNewWithConfig(config); |
| 25 | + YGNodeRef root_child1 = YGNodeNewWithConfig(config); |
26 | 26 | YGNodeStyleSetWidth(root_child1, 20); |
27 | 27 | YGNodeInsertChild(root, root_child1, 1); |
28 | 28 |
|
29 | | - const YGNodeRef root_child2 = YGNodeNewWithConfig(config); |
| 29 | + YGNodeRef root_child2 = YGNodeNewWithConfig(config); |
30 | 30 | YGNodeStyleSetWidth(root_child2, 20); |
31 | 31 | YGNodeInsertChild(root, root_child2, 2); |
32 | 32 |
|
33 | | - const YGNodeRef root_child3 = YGNodeNewWithConfig(config); |
| 33 | + YGNodeRef root_child3 = YGNodeNewWithConfig(config); |
34 | 34 | YGNodeStyleSetWidth(root_child3, 20); |
35 | 35 | YGNodeInsertChild(root, root_child3, 3); |
36 | 36 | YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR); |
|
0 commit comments