diff options
author | Abseil Team <absl-team@google.com> | 2018-08-29 08:09:04 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-08-31 01:32:54 (GMT) |
commit | 00d1ffc8c85234fb8fe873d1591374289de1356d (patch) | |
tree | c5550317141a2b534b7082b1e7bf3b890ecdf588 /googletest/test/googletest-output-test_.cc | |
parent | 2cc008538c97189a5130a5598c62574c4972bef4 (diff) | |
download | googletest-00d1ffc8c85234fb8fe873d1591374289de1356d.zip googletest-00d1ffc8c85234fb8fe873d1591374289de1356d.tar.gz googletest-00d1ffc8c85234fb8fe873d1591374289de1356d.tar.bz2 |
Googletest export
Fix the typed test names in the tests for customized typed test parameters.
As required by googletest documentation, the names should not contain an underscore.
PiperOrigin-RevId: 210678652
Diffstat (limited to 'googletest/test/googletest-output-test_.cc')
-rw-r--r-- | googletest/test/googletest-output-test_.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/googletest/test/googletest-output-test_.cc b/googletest/test/googletest-output-test_.cc index d6f7e0b..df82517 100644 --- a/googletest/test/googletest-output-test_.cc +++ b/googletest/test/googletest-output-test_.cc @@ -811,9 +811,9 @@ class TypedTestNames { template <typename T> static std::string GetName(int i) { if (testing::internal::IsSame<T, char>::value) - return std::string("char_") + ::testing::PrintToString(i); + return std::string("char") + ::testing::PrintToString(i); if (testing::internal::IsSame<T, int>::value) - return std::string("int_") + ::testing::PrintToString(i); + return std::string("int") + ::testing::PrintToString(i); } }; @@ -852,10 +852,10 @@ class TypedTestPNames { template <typename T> static std::string GetName(int i) { if (testing::internal::IsSame<T, unsigned char>::value) { - return std::string("unsigned_char_") + ::testing::PrintToString(i); + return std::string("unsignedChar") + ::testing::PrintToString(i); } if (testing::internal::IsSame<T, unsigned int>::value) { - return std::string("unsigned_int_") + ::testing::PrintToString(i); + return std::string("unsignedInt") + ::testing::PrintToString(i); } } }; |