From 0d1006f07bc1c1c5e46412044f6c8a48745fb023 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 16 Sep 2015 22:55:38 +0200 Subject: [PATCH] [4032] Improved message unit test comment --- src/lib/exceptions/tests/exceptions_unittest.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/exceptions/tests/exceptions_unittest.cc b/src/lib/exceptions/tests/exceptions_unittest.cc index 0f03d1d989..977d393ae3 100644 --- a/src/lib/exceptions/tests/exceptions_unittest.cc +++ b/src/lib/exceptions/tests/exceptions_unittest.cc @@ -73,7 +73,8 @@ TEST_F(ExceptionTest, verbose) { } -// Test matching message. +// A full example of how to check both the exception (e.g., EXPECT_THROW) +// and its associated message (something no gtest macros do). TEST_F(ExceptionTest, message) { try { raise_foobar(); -- 2.47.3