Googletest export

Fix code in googletest parameterized name example.

PiperOrigin-RevId: 373262838
This commit is contained in:
Abseil Team 2021-05-11 20:05:04 -04:00 committed by CJ Johnson
parent 97f96cbc8a
commit d69a112956

View File

@ -1537,7 +1537,7 @@ INSTANTIATE_TEST_SUITE_P(
std::string name = absl::StrCat(
std::get<0>(info.param) == MyType::MY_FOO ? "Foo" : "Bar",
std::get<1>(info.param));
absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '');
absl::c_replace_if(name, [](char c) { return !std::isalnum(c); }, '_');
return name;
});
```