diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-02-24 15:37:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 15:37:48 -0600 |
commit | 9fbe415992986d33d09b3b9e5049ebc22d20790a (patch) | |
tree | 986c6a139e2de4d324aa470b029af88cbcda301f /test/unit/parser | |
parent | c4f2ca4c1931f91a9647f0daa032ee9417f1b382 (diff) |
Convert parser input interface to api::Term (#3809)
Diffstat (limited to 'test/unit/parser')
-rw-r--r-- | test/unit/parser/parser_black.h | 4 | ||||
-rw-r--r-- | test/unit/parser/parser_builder_black.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/parser/parser_black.h b/test/unit/parser/parser_black.h index bfaf8bda0..e00016f45 100644 --- a/test/unit/parser/parser_black.h +++ b/test/unit/parser/parser_black.h @@ -148,7 +148,7 @@ class ParserBlack TS_ASSERT(!parser->done()); setupContext(*parser); TS_ASSERT(!parser->done()); - Expr e = parser->nextExpression(); + api::Term e = parser->nextExpression(); TS_ASSERT(!e.isNull()); e = parser->nextExpression(); TS_ASSERT(parser->done()); @@ -187,7 +187,7 @@ class ParserBlack .build(); setupContext(*parser); TS_ASSERT(!parser->done()); - TS_ASSERT_THROWS(Expr e = parser->nextExpression(); + TS_ASSERT_THROWS(api::Term e = parser->nextExpression(); cout << endl << "Bad expr succeeded." << endl << "Input: <<" << badExpr << ">>" << endl diff --git a/test/unit/parser/parser_builder_black.h b/test/unit/parser/parser_builder_black.h index 78e1be748..44bb9293b 100644 --- a/test/unit/parser/parser_builder_black.h +++ b/test/unit/parser/parser_builder_black.h @@ -99,7 +99,7 @@ class ParserBuilderBlack : public CxxTest::TestSuite Parser *parser = builder.build(); TS_ASSERT(parser != NULL); - Expr e = parser->nextExpression(); + api::Term e = parser->nextExpression(); TS_ASSERT(e.isNull()); delete parser; @@ -110,7 +110,7 @@ class ParserBuilderBlack : public CxxTest::TestSuite Parser *parser = builder.build(); TS_ASSERT(parser != NULL); - Expr e = parser->nextExpression(); + api::Term e = parser->nextExpression(); TS_ASSERT_EQUALS(e, d_solver->getExprManager()->mkConst(true)); e = parser->nextExpression(); |