Home | History | Annotate | Download | only in strings

Lines Matching refs:Join

123   EXPECT_EQ("", string_utils::Join(",", {}));
124 EXPECT_EQ("abc", string_utils::Join(",", {"abc"}));
125 EXPECT_EQ("abc,,xyz", string_utils::Join(",", {"abc", "", "xyz"}));
126 EXPECT_EQ("abc,defg", string_utils::Join(",", {"abc", "defg"}));
127 EXPECT_EQ("1 : 2 : 3", string_utils::Join(" : ", {"1", "2", "3"}));
128 EXPECT_EQ("1:2", string_utils::Join(":", std::set<std::string>{"1", "2"}));
129 EXPECT_EQ("1:2", string_utils::Join(":", std::vector<std::string>{"1", "2"}));
130 EXPECT_EQ("1:2", string_utils::Join(":", std::list<std::string>{"1", "2"}));
131 EXPECT_EQ("123", string_utils::Join("", {"1", "2", "3"}));
135 EXPECT_EQ("ab,cd", string_utils::Join(",", "ab", "cd"));
136 EXPECT_EQ("key = value", string_utils::Join(" = ", "key", "value"));