aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2023-10-19 13:54:41 -0700
committerCopybara-Service <copybara-worker@google.com>2023-10-19 13:55:15 -0700
commit116b7e55281c4200151524b093ecc03757a4ffda (patch)
treefb6719ca5b0d79b26479022238bfc5d8b8f2a0a5
parent9bb354fa8325fa31faa1e12627b25ab445e6eed3 (diff)
downloadgoogletest-116b7e55281c4200151524b093ecc03757a4ffda.tar.gz
Improve error message for invalid parameterized test names.
PiperOrigin-RevId: 574992011 Change-Id: Id6030a9e5f317966186cc48ef2c09ad97fa15d3e
-rw-r--r--googletest/include/gtest/internal/gtest-param-util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/include/gtest/internal/gtest-param-util.h b/googletest/include/gtest/internal/gtest-param-util.h
index dd39e98a..b04f7020 100644
--- a/googletest/include/gtest/internal/gtest-param-util.h
+++ b/googletest/include/gtest/internal/gtest-param-util.h
@@ -584,8 +584,8 @@ class ParameterizedTestSuiteInfo : public ParameterizedTestSuiteInfoBase {
GTEST_CHECK_(IsValidParamName(param_name))
<< "Parameterized test name '" << param_name
- << "' is invalid (contains spaces, dashes, underscores, or "
- "non-alphanumeric characters), in "
+ << "' is invalid (contains spaces, dashes, or any "
+ "non-alphanumeric characters other than underscores), in "
<< file << " line " << line << "" << std::endl;
GTEST_CHECK_(test_param_names.count(param_name) == 0)