#include <boost/random.hpp>
#include <folly/Conv.h>
-#include <folly/Foreach.h>
#include <folly/Portability.h>
#include <folly/Random.h>
+#include <folly/container/Foreach.h>
#include <folly/portability/GTest.h>
using namespace std;
}
return lst;
}
-}
+} // namespace
////////////////////////////////////////////////////////////////////////////////
// Tests begin here
void(*f_fbstring)(folly::fbstring&),
void(*f_wfbstring)(folly::basic_fbstring<wchar_t>&)) {
do {
- if (1) {
+ if (true) {
} else {
EXPECT_TRUE(1) << "Testing clause " << clause;
}
// other than libstdc++. Someday if we deem it important to present
// identical undefined behavior for other platforms, we can re-visit this.
TEST(FBString, testConstructionFromLiteralZero) {
- EXPECT_THROW(fbstring s(0), std::logic_error);
+ EXPECT_THROW(fbstring s(nullptr), std::logic_error);
}
TEST(FBString, testFixedBugs) {