aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorshiqian <shiqian@8415998a-534a-0410-bf83-d39667b30386>2008-12-11 17:22:59 +0000
committershiqian <shiqian@8415998a-534a-0410-bf83-d39667b30386>2008-12-11 17:22:59 +0000
commitc97f2f560bc6893b0b535b4312a161917c07854b (patch)
tree7ce807b758d878835a84b8ca280ec53b0ab6211e /test
parentc50af1ab55b4067d919c1a83a5093000e7cf5e57 (diff)
downloadgoogletest-c97f2f560bc6893b0b535b4312a161917c07854b.tar.gz
googletest-c97f2f560bc6893b0b535b4312a161917c07854b.tar.bz2
googletest-c97f2f560bc6893b0b535b4312a161917c07854b.zip
Fixes compatibility with gcc 4.3's tuple implementation.
Diffstat (limited to 'test')
-rw-r--r--test/gmock-printers_test.cc23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/gmock-printers_test.cc b/test/gmock-printers_test.cc
index 7457af2b..9677491a 100644
--- a/test/gmock-printers_test.cc
+++ b/test/gmock-printers_test.cc
@@ -754,6 +754,29 @@ TEST(PrintTupleTest, VariousSizes) {
tuple<char, bool> t2('a', true);
EXPECT_EQ("('a' (97), true)", Print(t2));
+ tuple<bool, int, int> t3(false, 2, 3);
+ EXPECT_EQ("(false, 2, 3)", Print(t3));
+
+ tuple<bool, int, int, int> t4(false, 2, 3, 4);
+ EXPECT_EQ("(false, 2, 3, 4)", Print(t4));
+
+ tuple<bool, int, int, int, bool> t5(false, 2, 3, 4, true);
+ EXPECT_EQ("(false, 2, 3, 4, true)", Print(t5));
+
+ tuple<bool, int, int, int, bool, int> t6(false, 2, 3, 4, true, 6);
+ EXPECT_EQ("(false, 2, 3, 4, true, 6)", Print(t6));
+
+ tuple<bool, int, int, int, bool, int, int> t7(false, 2, 3, 4, true, 6, 7);
+ EXPECT_EQ("(false, 2, 3, 4, true, 6, 7)", Print(t7));
+
+ tuple<bool, int, int, int, bool, int, int, bool> t8(
+ false, 2, 3, 4, true, 6, 7, true);
+ EXPECT_EQ("(false, 2, 3, 4, true, 6, 7, true)", Print(t8));
+
+ tuple<bool, int, int, int, bool, int, int, bool, int> t9(
+ false, 2, 3, 4, true, 6, 7, true, 9);
+ EXPECT_EQ("(false, 2, 3, 4, true, 6, 7, true, 9)", Print(t9));
+
const char* const str = "8";
tuple<bool, char, short, testing::internal::Int32, // NOLINT
testing::internal::Int64, float, double, const char*, void*, string>