mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
Googletest export
Fix code in googletest parameterized name example. PiperOrigin-RevId: 373262838
This commit is contained in:
parent
97f96cbc8a
commit
d69a112956
@ -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;
|
||||
});
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user