Skip to content

Commit 3dd78f1

Browse files
committed
output the parsed ast during parser test for debugging
1 parent 7c9c919 commit 3dd78f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/ParserTest.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,9 @@ TEST_CASE("Parser") {
815815
parser.parse(lexer.tokens, source, "fakeFile.th", filesByCapsuleName)
816816
);
817817

818+
cout << "THE PARSED AST IS: " << endl;
819+
cout << parsedAST->toJSON() << endl;
820+
818821
REQUIRE(parsedAST->getNodeType() == ASTNode::SOURCE);
819822
REQUIRE(parsedAST->getLinks().size() == 0);
820823
REQUIRE(parsedAST->getValue()->getNodeType() == ASTNode::ASSIGNMENT);

0 commit comments

Comments
 (0)