Commit 92d74b9b authored by HC Zhu's avatar HC Zhu Committed by Facebook Github Bot

more test cases for folly::split with std::ignore

Summary: Simply the code a little bit.

Reviewed By: yfeldblum

Differential Revision: D10609398

fbshipit-source-id: 055f6fd7fb9f5768df7b0b2b28071fa53181a838
parent a917f122
......@@ -969,6 +969,10 @@ TEST(Split, fixed_convert) {
EXPECT_TRUE(folly::split<false>(':', "a:13:14.7:b", a, b, std::ignore));
EXPECT_EQ("a", a);
EXPECT_EQ(13, b);
EXPECT_FALSE(folly::split<false>(':', "a:13", std::ignore, b, std::ignore));
EXPECT_TRUE(folly::split<false>(':', ":13:", std::ignore, b, std::ignore));
EXPECT_EQ(13, b);
}
namespace my {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment