diff options
author | Abseil Team <absl-team@google.com> | 2023-10-19 20:54:41 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-19 20:55:15 (GMT) |
commit | 116b7e55281c4200151524b093ecc03757a4ffda (patch) | |
tree | fb6719ca5b0d79b26479022238bfc5d8b8f2a0a5 /googletest/include/gtest/internal/gtest-param-util.h | |
parent | 9bb354fa8325fa31faa1e12627b25ab445e6eed3 (diff) | |
download | googletest-116b7e55281c4200151524b093ecc03757a4ffda.zip googletest-116b7e55281c4200151524b093ecc03757a4ffda.tar.gz googletest-116b7e55281c4200151524b093ecc03757a4ffda.tar.bz2 |
Improve error message for invalid parameterized test names.
PiperOrigin-RevId: 574992011
Change-Id: Id6030a9e5f317966186cc48ef2c09ad97fa15d3e
Diffstat (limited to 'googletest/include/gtest/internal/gtest-param-util.h')
-rw-r--r-- | googletest/include/gtest/internal/gtest-param-util.h | 4 |
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 dd39e98..b04f702 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) |