Lines Matching full:parts

17   std::vector<std::string> parts;  in TEST()  local
19 parts = string_utils::Split("", ",", false, false); in TEST()
20 EXPECT_EQ(0, parts.size()); in TEST()
22 parts = string_utils::Split("abc", ",", false, false); in TEST()
23 EXPECT_EQ(1, parts.size()); in TEST()
24 EXPECT_EQ("abc", parts[0]); in TEST()
26 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, true); in TEST()
27 EXPECT_EQ(4, parts.size()); in TEST()
28 EXPECT_EQ("a", parts[0]); in TEST()
29 EXPECT_EQ("bc", parts[1]); in TEST()
30 EXPECT_EQ("d", parts[2]); in TEST()
31 EXPECT_EQ("e", parts[3]); in TEST()
33 parts = string_utils::Split(",a,bc , d, ,e, ", ",", false, true); in TEST()
34 EXPECT_EQ(6, parts.size()); in TEST()
35 EXPECT_EQ("a", parts[0]); in TEST()
36 EXPECT_EQ("bc ", parts[1]); in TEST()
37 EXPECT_EQ(" d", parts[2]); in TEST()
38 EXPECT_EQ(" ", parts[3]); in TEST()
39 EXPECT_EQ("e", parts[4]); in TEST()
40 EXPECT_EQ(" ", parts[5]); in TEST()
42 parts = string_utils::Split(",a,bc , d, ,e, ", ",", true, false); in TEST()
43 EXPECT_EQ(7, parts.size()); in TEST()
44 EXPECT_EQ("", parts[0]); in TEST()
45 EXPECT_EQ("a", parts[1]); in TEST()
46 EXPECT_EQ("bc", parts[2]); in TEST()
47 EXPECT_EQ("d", parts[3]); in TEST()
48 EXPECT_EQ("", parts[4]); in TEST()
49 EXPECT_EQ("e", parts[5]); in TEST()
50 EXPECT_EQ("", parts[6]); in TEST()
52 parts = string_utils::Split(",a,bc , d, ,e, ", ",", false, false); in TEST()
53 EXPECT_EQ(7, parts.size()); in TEST()
54 EXPECT_EQ("", parts[0]); in TEST()
55 EXPECT_EQ("a", parts[1]); in TEST()
56 EXPECT_EQ("bc ", parts[2]); in TEST()
57 EXPECT_EQ(" d", parts[3]); in TEST()
58 EXPECT_EQ(" ", parts[4]); in TEST()
59 EXPECT_EQ("e", parts[5]); in TEST()
60 EXPECT_EQ(" ", parts[6]); in TEST()
62 parts = string_utils::Split("abc:=xyz", ":=", false, false); in TEST()
63 EXPECT_EQ(2, parts.size()); in TEST()
64 EXPECT_EQ("abc", parts[0]); in TEST()
65 EXPECT_EQ("xyz", parts[1]); in TEST()
67 parts = string_utils::Split("abc", "", false, false); in TEST()
68 EXPECT_EQ(3, parts.size()); in TEST()
69 EXPECT_EQ("a", parts[0]); in TEST()
70 EXPECT_EQ("b", parts[1]); in TEST()
71 EXPECT_EQ("c", parts[2]); in TEST()