Website Summary Files Commits Branches @commit @diff @stats
path: root / JSImpl / test / ParserTests.cpp
diff options
context:
space:
mode:
Commit8452476baf9eba44319c7c00530efc0ce89ebcf0 (patch)
Author
 Martin Dobrev <martindobrev0@gmail.com>
2020-10-24 18:05:13 +0300
Committer
 Martin Dobrev <martindobrev0@gmail.com>
2020-10-24 18:05:13 +0300
Filesa9191d79253a1afab8300e50dc19537b562fab8f /JSImpl/test/ParserTests.cpp
IPL-8452476baf9eba44319c7c00530efc0ce89ebcf0.tar
IPL-8452476baf9eba44319c7c00530efc0ce89ebcf0.tar.gz
IPL-8452476baf9eba44319c7c00530efc0ce89ebcf0.zip
Parentf8ccf5eedb60435b7fac66521554beab582c0b00 (diff)
Fix build
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)