[Syntax] Show input code on tests failures. NFC

This commit is contained in:
Ilya Biryukov 2019-12-05 16:12:28 +01:00
parent 853961f21a
commit 242649c17c
1 changed files with 2 additions and 0 deletions

View File

@ -515,6 +515,8 @@ void foo() {
)txt"}};
for (const auto &T : Cases) {
SCOPED_TRACE(T.first);
auto *Root = buildTree(T.first);
std::string Expected = llvm::StringRef(T.second).trim().str();
std::string Actual = llvm::StringRef(Root->dump(*Arena)).trim();