From 66406fdf1553de6ad672576167e7cc7ca2d764cb Mon Sep 17 00:00:00 2001 From: Greg Falcon Date: Mon, 5 Jun 2023 14:27:37 -0700 Subject: Add a unit test that captures the current behavior of formatting of char types and char-backed enum types through StrCat(), StrFormat("%v"), and Substitute(). This test allows us to modify the behavior in this space without introducing undesired changes elsewhere. PiperOrigin-RevId: 537981963 Change-Id: Icda91b66efcc0dc8c263011b137e130a3db2dc19 --- absl/strings/CMakeLists.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'absl/strings/CMakeLists.txt') diff --git a/absl/strings/CMakeLists.txt b/absl/strings/CMakeLists.txt index 9aaa7932..2ad052a3 100644 --- a/absl/strings/CMakeLists.txt +++ b/absl/strings/CMakeLists.txt @@ -548,6 +548,20 @@ absl_cc_test( GTest::gmock_main ) +absl_cc_test( + NAME + char_formatting_test + SRCS + "char_formatting_test.cc" + COPTS + ${ABSL_TEST_COPTS} + DEPS + absl::base + absl::str_format + absl::strings + GTest::gmock_main +) + # Internal-only target, do not depend on directly. absl_cc_library( NAME -- cgit v1.2.3