diff options
author | Abseil Team <absl-team@google.com> | 2021-09-30 14:34:43 (GMT) |
---|---|---|
committer | CJ Johnson <johnsoncj@google.com> | 2021-09-30 23:07:32 (GMT) |
commit | 3b49be074d5c1340eeb447e6a8e78427051e675a (patch) | |
tree | eb95355ba469dc98e973ef0a4eed01ff49b0d602 /googletest/test | |
parent | ab36804e42d4cb85b7e7fe9946928597840684db (diff) | |
download | googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.zip googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.gz googletest-3b49be074d5c1340eeb447e6a8e78427051e675a.tar.bz2 |
Googletest export
googletest: Add printer for {std,absl}::nullopt.
PiperOrigin-RevId: 399928554
Diffstat (limited to 'googletest/test')
-rw-r--r-- | googletest/test/googletest-printers-test.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/googletest/test/googletest-printers-test.cc b/googletest/test/googletest-printers-test.cc index e1e8e1c..9c9a223 100644 --- a/googletest/test/googletest-printers-test.cc +++ b/googletest/test/googletest-printers-test.cc @@ -1873,6 +1873,7 @@ TEST_F(PrintAnyTest, NonEmpty) { #if GTEST_INTERNAL_HAS_OPTIONAL TEST(PrintOptionalTest, Basic) { + EXPECT_EQ("(nullopt)", PrintToString(internal::Nullopt())); internal::Optional<int> value; EXPECT_EQ("(nullopt)", PrintToString(value)); value = {7}; |