Parcourir la source

[4032] Improved message unit test comment

Francis Dupont il y a 9 ans
Parent
commit
0d1006f07b
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/exceptions/tests/exceptions_unittest.cc

+ 2 - 1
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();