Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / test / ParserTests.cpp
diff options
context:
space:
mode:
1 files changed, 3 insertions, 4 deletions
-rw-r--r--JSImpl/test/ParserTests.cpp7
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)