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
@@ -81,6 +81,9 @@ namespace yoga {
|
||||
|
||||
using CompactValue = detail::CompactValue;
|
||||
|
||||
// TODO: MSVC doesn't like the macros
|
||||
#ifndef _MSC_VER
|
||||
|
||||
ACCESSOR_TEST(
|
||||
direction,
|
||||
YGDirectionInherit,
|
||||
@@ -250,5 +253,7 @@ ACCESSOR_TEST(
|
||||
YGFloatOptional{0.0f},
|
||||
YGFloatOptional{});
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace yoga
|
||||
} // namespace facebook
|
||||
|
Reference in New Issue
Block a user