[clang-tools-extra] r366674 - [clangd] Log input code of failed highlighting tests. NFC

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 22 03:05:11 PDT 2019


Author: ibiryukov
Date: Mon Jul 22 03:05:11 2019
New Revision: 366674

URL: http://llvm.org/viewvc/llvm-project?rev=366674&view=rev
Log:
[clangd] Log input code of failed highlighting tests. NFC

Modified:
    clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp

Modified: clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp?rev=366674&r1=366673&r2=366674&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp (original)
+++ clang-tools-extra/trunk/clangd/unittests/SemanticHighlightingTests.cpp Mon Jul 22 03:05:11 2019
@@ -50,7 +50,8 @@ void checkHighlightings(llvm::StringRef
   }
 
   auto ActualTokens = getSemanticHighlightings(AST);
-  EXPECT_THAT(ActualTokens, testing::UnorderedElementsAreArray(ExpectedTokens));
+  EXPECT_THAT(ActualTokens, testing::UnorderedElementsAreArray(ExpectedTokens))
+   << "Inputs is:\n" << Code;
 }
 
 TEST(SemanticHighlighting, GetsCorrectTokens) {




More information about the cfe-commits mailing list