From af5d3b02fbc6033b67629c8496d69c98ca960882 Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Mon, 22 Jul 2019 10:05:11 +0000 Subject: [PATCH] [clangd] Log input code of failed highlighting tests. NFC llvm-svn: 366674 --- .../clangd/unittests/SemanticHighlightingTests.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp index 2943780b8bdf..b11302a262c4 100644 --- a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp +++ b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp @@ -50,7 +50,8 @@ void checkHighlightings(llvm::StringRef Code) { } auto ActualTokens = getSemanticHighlightings(AST); - EXPECT_THAT(ActualTokens, testing::UnorderedElementsAreArray(ExpectedTokens)); + EXPECT_THAT(ActualTokens, testing::UnorderedElementsAreArray(ExpectedTokens)) + << "Inputs is:\n" << Code; } TEST(SemanticHighlighting, GetsCorrectTokens) {