Skip to content

Commit beee017

Browse files
avpfacebook-github-bot
authored andcommitted
Use == instead of EXPECT_EQ in testlib (facebook#1740)
Summary: X-link: react/react-native#52796 The `EXPECT_EQ` was leading to potentially ambiguous use of `<<` when gtest tries to print information. Differential Revision: D78823354
1 parent 8b38455 commit beee017

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

API/jsi/jsi/test/testlib.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@ TEST_P(JSITest, CastInterface) {
18771877
auto randomUuid = UUID{0xf2cd96cf, 0x455e, 0x42d9, 0x850a, 0x13e2cde59b8b};
18781878
auto ptr = rd.castInterface(randomUuid);
18791879

1880-
EXPECT_EQ(ptr, nullptr);
1880+
EXPECT_TRUE(ptr == nullptr);
18811881
}
18821882

18831883
INSTANTIATE_TEST_CASE_P(

0 commit comments

Comments
 (0)