Lines Matching full:parts

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