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
@@ -35,7 +35,7 @@ TEST(CSSLayoutTest, copy_style_modified) {
|
||||
CSSNodeCopyStyle(node0, node1);
|
||||
ASSERT_TRUE(CSSNodeIsDirty(node0));
|
||||
ASSERT_EQ(CSSFlexDirectionRow, CSSNodeStyleGetFlexDirection(node0));
|
||||
ASSERT_EQ(10, CSSNodeStyleGetMaxHeight(node0));
|
||||
ASSERT_FLOAT_EQ(10, CSSNodeStyleGetMaxHeight(node0));
|
||||
|
||||
CSSNodeFree(node0);
|
||||
CSSNodeFree(node1);
|
||||
|
Reference in New Issue
Block a user