summaryrefslogtreecommitdiff
path: root/test/system/ouroborous.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/system/ouroborous.cpp')
-rw-r--r--test/system/ouroborous.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/system/ouroborous.cpp b/test/system/ouroborous.cpp
index 3075e358d..a9f205236 100644
--- a/test/system/ouroborous.cpp
+++ b/test/system/ouroborous.cpp
@@ -70,7 +70,7 @@ string translate(string in, InputLanguage inlang, OutputLanguage outlang) {
<< "translating from " << inlang << " to " << outlang << " this string:" << endl
<< in << endl;
psr->setInput(Input::newStringInput(inlang, in, "internal-buffer"));
- Expr e = psr->nextExpression();
+ Expr e = psr->nextExpression().getExpr();
stringstream ss;
ss << language::SetLanguage(outlang) << expr::ExprSetDepth(-1) << e;
assert(psr->nextExpression().isNull());// next expr should be null
@@ -81,7 +81,7 @@ string translate(string in, InputLanguage inlang, OutputLanguage outlang) {
<< "reparsing as " << outlang << endl;
psr->setInput(Input::newStringInput(toInputLanguage(outlang), s, "internal-buffer"));
- Expr f = psr->nextExpression();
+ Expr f = psr->nextExpression().getExpr();
assert(e == f);
cout << "got same expressions " << e.getId() << " and " << f.getId() << endl
<< "==============================================" << endl;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback