forked from OSchip/llvm-project
[Syntax] Show input code on tests failures. NFC
This commit is contained in:
parent
853961f21a
commit
242649c17c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue