Summary:
Change every instance of EXPECT_EQ(false, ... to the simpler/shorter EXPECT_FALSE(...
Do the same for ASSERT_EQ, for consistency, and for true/TRUE.
Reviewed By: Orvid
Differential Revision:
D4751397
fbshipit-source-id:
045293dbf8be1167f0cb1b85a2f9cd59a6a30f73
});
base.loop();
- ASSERT_EQ(true, ran);
+ ASSERT_TRUE(ran);
}
TEST(EventBaseTest, EventBaseThreadName) {
c.write((uint8_t)40); // OK
try {
c.write((uint8_t)10); // Bad write, checked should except.
- EXPECT_EQ(true, false);
+ EXPECT_TRUE(false);
} catch (...) {
}
}
dynamic d3 = true;
auto i3 = convertTo<const bool>(d3);
- EXPECT_EQ(true, i3);
+ EXPECT_TRUE(i3);
dynamic d4 = "true";
auto i4 = convertTo<const bool>(d4);
- EXPECT_EQ(true, i4);
+ EXPECT_TRUE(i4);
dynamic d5 = dynamic::array(1, 2);
auto i5 = convertTo<const std::pair<const int, const int>>(d5);
EXPECT_EQ(6.0, ddouble.getDouble());
EXPECT_EQ(5.0, std::move(mdouble).getDouble());
- EXPECT_EQ(true, cbool.getBool());
+ EXPECT_TRUE(cbool.getBool());
dbool.getBool() = false;
EXPECT_FALSE(dbool.getBool());
- EXPECT_EQ(true, std::move(mbool).getBool());
+ EXPECT_TRUE(std::move(mbool).getBool());
}
TEST(Dynamic, At) {