summaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock_output_test_.cc
diff options
context:
space:
mode:
authorGennadiy Civil <misterg@google.com>2018-04-05 20:09:17 (GMT)
committerGennadiy Civil <misterg@google.com>2018-04-05 20:09:17 (GMT)
commitfe402c27790ff1cc9a7e17c5d0aea4ebe7fd8a71 (patch)
tree8ba4de15422544aa4995d4dc269c61167866b00e /googlemock/test/gmock_output_test_.cc
parent7e5f90d3780d553cb86771141fb81349f3a63508 (diff)
downloadgoogletest-fe402c27790ff1cc9a7e17c5d0aea4ebe7fd8a71.zip
googletest-fe402c27790ff1cc9a7e17c5d0aea4ebe7fd8a71.tar.gz
googletest-fe402c27790ff1cc9a7e17c5d0aea4ebe7fd8a71.tar.bz2
Merging gMock, 2
Diffstat (limited to 'googlemock/test/gmock_output_test_.cc')
-rw-r--r--googlemock/test/gmock_output_test_.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/googlemock/test/gmock_output_test_.cc b/googlemock/test/gmock_output_test_.cc
index d80e2b0..ca628df 100644
--- a/googlemock/test/gmock_output_test_.cc
+++ b/googlemock/test/gmock_output_test_.cc
@@ -273,6 +273,11 @@ MATCHER_P2(IsPair, first, second, "") {
return Value(arg.first, first) && Value(arg.second, second);
}
+TEST_F(GMockOutputTest, PrintsMatcher) {
+ const testing::Matcher<int> m1 = Ge(48);
+ EXPECT_THAT((std::pair<int, bool>(42, true)), IsPair(m1, true));
+}
+
void TestCatchesLeakedMocksInAdHocTests() {
MockFoo* foo = new MockFoo;