Fixup UTs for MSVC and Release Mode
Summary: This fixes incompatibility with MSVC in /W3 (designated initializers, precision loss) along with guarding tests which will only pass in DEBUG builds Reviewed By: cortinico Differential Revision: D42406531 fbshipit-source-id: 2c0d59678f76decf9b9b4d91a7c9ec12136ca1b9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9808358e08
commit
83cef5b12f
@@ -234,7 +234,7 @@ TEST_F(EventTest, layout_events_has_max_measure_cache) {
|
||||
YGNodeInsertChild(root, b, 1);
|
||||
YGNodeStyleSetFlexBasis(a, 10.0f);
|
||||
|
||||
for (auto s : {20, 30, 40}) {
|
||||
for (auto s : {20.0f, 30.0f, 40.0f}) {
|
||||
YGNodeCalculateLayout(root, s, s, YGDirectionLTR);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user