From 8452476baf9eba44319c7c00530efc0ce89ebcf0 Mon Sep 17 00:00:00 2001 From: Martin Dobrev Date: Sat, 24 Oct 2020 18:05:13 +0300 Subject: Fix build --- JSImpl/test/ParserTests.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'JSImpl/test/ParserTests.cpp') diff --git a/JSImpl/test/ParserTests.cpp b/JSImpl/test/ParserTests.cpp index 8bdfb8c..c996689 100644 --- a/JSImpl/test/ParserTests.cpp +++ b/JSImpl/test/ParserTests.cpp @@ -14,10 +14,9 @@ TEST(Parser, ParseUnaryExpr) // TODO make actual test :D auto expr = Parse(tokens); - std::ostringstream output; - ASTPrinter p(output); - expr->Accept(p); - ASSERT_TRUE(!output.str().empty()); + std::ostringstream output; + PrintAST(expr, output); + ASSERT_TRUE(!output.str().empty()); } TEST(Parser, VariableDeclaration) -- cgit v1.3.1-23-gd82d