diff options
author | Greg Falcon <gfalcon@google.com> | 2023-06-05 14:27:37 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-05 14:28:21 -0700 |
commit | 66406fdf1553de6ad672576167e7cc7ca2d764cb (patch) | |
tree | 086ef19347c945aa8115a8a4279d00427eda3791 /absl/strings/BUILD.bazel | |
parent | 7a74153a05aa8bacb8cb9ae3fa707e5407adc2c9 (diff) |
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
Diffstat (limited to 'absl/strings/BUILD.bazel')
-rw-r--r-- | absl/strings/BUILD.bazel | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/absl/strings/BUILD.bazel b/absl/strings/BUILD.bazel index bd33c533..4a111b5a 100644 --- a/absl/strings/BUILD.bazel +++ b/absl/strings/BUILD.bazel @@ -1319,3 +1319,15 @@ cc_binary( "//absl/types:optional", ], ) + +cc_test( + name = "char_formatting_test", + srcs = [ + "char_formatting_test.cc", + ], + deps = [ + ":str_format", + ":strings", + "@com_google_googletest//:gtest_main", + ], +) |