stripLeftMargin
Summary: [Folly] `stripLeftMargin`. So you can do: TEST(MyClass, doSomethingWithString) { // Multiline string literal is indented properly inside the test case // instead of being aligned all the way to the left, which would make // the test case read poorly. auto input = folly::stripLeftMargin(R"TEXT( first line second line third line )TEXT"); auto expected = //... auto actual = MyClass::doSomethingWithString(input); EXPECT_EQ(expected, actual); } Reviewed By: markisaa Differential Revision: D2909736 fb-gh-sync-id: ebb07da05e1a788535064cfcd9e07f617a007800 shipit-source-id: ebb07da05e1a788535064cfcd9e07f617a007800
Showing
Please register or sign in to comment