From: marehr <marehr-github@marehr.dialup.fu-berlin.de>
Date: Mon, 2 Nov 2020 14:32:05 +0100
Subject: support latest googletest
Forwarded: not-needed

--- seqan3.orig/test/unit/test/pretty_printing_test.cpp
+++ seqan3/test/unit/test/pretty_printing_test.cpp
@@ -39,18 +39,27 @@
 
     EXPECT_EQ(gtest_str(std::make_tuple<int, int>(42, -10)), "(42, -10)"s);
     EXPECT_EQ(debug_str(std::make_tuple<int, int>(42, -10)), "(42,-10)"s);
-}
-
-TEST(pretty_printing, std_output)
-{
-    EXPECT_EQ(gtest_str(std::vector<std::vector<int>>{{0,1}, {2,3}, {1,2}, {0}}), "[[0,1],[2,3],[1,2],[0]]"s);
-    EXPECT_EQ(debug_str(std::vector<std::vector<int>>{{0,1}, {2,3}, {1,2}, {0}}), "[[0,1],[2,3],[1,2],[0]]"s);
 
+#if GTEST_INTERNAL_HAS_VARIANT // googletest >1.10.0
+    EXPECT_EQ(gtest_str(std::variant<int>{0}), "('int(index = 0)' with value 0)"s);
+#else // googletest <= 1.10.0
     EXPECT_EQ(gtest_str(std::variant<int>{0}), "0"s);
+#endif
     EXPECT_EQ(debug_str(std::variant<int>{0}), "0"s);
 
+#if GTEST_INTERNAL_HAS_OPTIONAL // googletest >1.10.0
+    EXPECT_EQ(gtest_str(std::optional<int>{}), "(nullopt)"s);
+#else // googletest <= 1.10.0
     EXPECT_EQ(gtest_str(std::optional<int>{}), "<VALUELESS_OPTIONAL>"s);
+#endif
     EXPECT_EQ(debug_str(std::optional<int>{}), "<VALUELESS_OPTIONAL>"s);
+}
+
+TEST(pretty_printing, std_output)
+{
+    // if any of these tests get supported by googletest move them to gtest_output
+    EXPECT_EQ(gtest_str(std::vector<std::vector<int>>{{0,1}, {2,3}, {1,2}, {0}}), "[[0,1],[2,3],[1,2],[0]]"s);
+    EXPECT_EQ(debug_str(std::vector<std::vector<int>>{{0,1}, {2,3}, {1,2}, {0}}), "[[0,1],[2,3],[1,2],[0]]"s);
 
     EXPECT_EQ(gtest_str(std::nullopt), "<VALUELESS_OPTIONAL>"s);
     EXPECT_EQ(debug_str(std::nullopt), "<VALUELESS_OPTIONAL>"s);
