Export of internal Abseil changes
-- ea0cfebeb69b25bec343652bbe1a203f5476c51a by Mark Barolak <mbar@google.com>: Change "std::string" to "string" in places where a "std::" qualification was incorrectly inserted by automation. PiperOrigin-RevId: 300108520 GitOrigin-RevId: ea0cfebeb69b25bec343652bbe1a203f5476c51a Change-Id: Ie3621e63a6ebad67b9fe56a3ebe33e1d50dac602
This commit is contained in:
parent
d936052d32
commit
a877af1f29
68 changed files with 191 additions and 191 deletions
|
|
@ -134,26 +134,26 @@ TEST(StrJoin, APIExamples) {
|
|||
//
|
||||
|
||||
{
|
||||
// Empty range yields an empty std::string.
|
||||
// Empty range yields an empty string.
|
||||
std::vector<std::string> v;
|
||||
EXPECT_EQ("", absl::StrJoin(v, "-"));
|
||||
}
|
||||
|
||||
{
|
||||
// A range of 1 element gives a std::string with that element but no
|
||||
// A range of 1 element gives a string with that element but no
|
||||
// separator.
|
||||
std::vector<std::string> v = {"foo"};
|
||||
EXPECT_EQ("foo", absl::StrJoin(v, "-"));
|
||||
}
|
||||
|
||||
{
|
||||
// A range with a single empty std::string element
|
||||
// A range with a single empty string element
|
||||
std::vector<std::string> v = {""};
|
||||
EXPECT_EQ("", absl::StrJoin(v, "-"));
|
||||
}
|
||||
|
||||
{
|
||||
// A range with 2 elements, one of which is an empty std::string
|
||||
// A range with 2 elements, one of which is an empty string
|
||||
std::vector<std::string> v = {"a", ""};
|
||||
EXPECT_EQ("a-", absl::StrJoin(v, "-"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue