Use ASSERT_FLOAT_EQ instead of ASSERT_EQ
Summary: Changes the unit test comparsion to use ```ASSERT_FLOAT_EQ``` instead of ```ASSERT_EQ``` as they check float values. Closes https://github.com/facebook/css-layout/pull/257 Reviewed By: splhack Differential Revision: D4213809 Pulled By: emilsjolander fbshipit-source-id: a79d310840814f26a122e1a0f6db47383b17d7e2
This commit is contained in:
committed by
Facebook Github Bot
parent
49a21e657b
commit
d54f09e32b
@@ -21,7 +21,7 @@ TEST(CSSLayoutTest, dont_cache_computed_flex_basis_between_layouts) {
|
||||
CSSNodeCalculateLayout(root, 100, CSSUndefined, CSSDirectionLTR);
|
||||
CSSNodeCalculateLayout(root, 100, 100, CSSDirectionLTR);
|
||||
|
||||
ASSERT_EQ(20, CSSNodeLayoutGetHeight(root_child0));
|
||||
ASSERT_FLOAT_EQ(20, CSSNodeLayoutGetHeight(root_child0));
|
||||
|
||||
CSSNodeFreeRecursive(root);
|
||||
}
|
||||
|
Reference in New Issue
Block a user