17 {
18
20
21 std::string s = "Hello,my frient,this is a good day.";
23
24 EXPECT_EQ(result.size(), 3);
25
26 EXPECT_STREQ(result[0].c_str(), "Hello");
27 EXPECT_STREQ(result[1].c_str(), "my frient");
28 EXPECT_STREQ(result[2].c_str(), "this is a good day.");
29 }
#define SPICESTEST_PROFILE_FUNCTION()
static std::vector< std::string > SplitString(const std::string &input, char delimiter)
Split a string to a string vector container use a char.