[Yoga] update unit tests

- all unit tests passed
This commit is contained in:
vvveiii
2020-08-15 17:55:00 +08:00
parent cc80a01488
commit b7cc9f9dac
12 changed files with 60 additions and 60 deletions

View File

@@ -9,18 +9,18 @@
#include <yoga/YGNode.h>
#include <yoga/Yoga.h>
static float _baselineFunc(
static YGFloat _baselineFunc(
YGNodeRef node,
const float width,
const float height) {
const YGFloat width,
const YGFloat height) {
return height / 2;
}
static YGSize _measure1(
YGNodeRef node,
float width,
YGFloat width,
YGMeasureMode widthMode,
float height,
YGFloat height,
YGMeasureMode heightMode) {
return YGSize{
.width = 42,
@@ -30,9 +30,9 @@ static YGSize _measure1(
static YGSize _measure2(
YGNodeRef node,
float width,
YGFloat width,
YGMeasureMode widthMode,
float height,
YGFloat height,
YGMeasureMode heightMode) {
return YGSize{
.width = 279,