summaryrefslogtreecommitdiff
path: root/test/unit/parser/parser_black.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2010-10-09 10:10:47 +0000
committerMorgan Deters <mdeters@gmail.com>2010-10-09 10:10:47 +0000
commit7a059452ebf5729723f610da9258a47007e38253 (patch)
tree2bbab5fe2aed85984a492d1706348ae3aaa7a68a /test/unit/parser/parser_black.h
parent0131e18b811bdf2825a1cde5a6d68d523b19aacc (diff)
reverting some changes to parser from last commit
Diffstat (limited to 'test/unit/parser/parser_black.h')
-rw-r--r--test/unit/parser/parser_black.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/test/unit/parser/parser_black.h b/test/unit/parser/parser_black.h
index 4f55edad5..288c3b1d5 100644
--- a/test/unit/parser/parser_black.h
+++ b/test/unit/parser/parser_black.h
@@ -14,7 +14,7 @@
** \brief Black box testing of CVC4::parser::Parser, including CVC, SMT and
** SMT v2 inputs.
**
- ** Black box testing of CVC4::parser::Parser, including CVC, SMT and
+ ** Black box testing of CVC4::parser::Parser, including CVC, SMT, and
** SMT v2 inputs.
**/
@@ -139,17 +139,19 @@ protected:
}
}
- /* NOTE: The check implemented here may fail if a bad expression expression string
- * has a prefix that is parseable as a good expression. E.g., the bad SMT v2 expression
- * "#b10@@@@@@" will actually return the bit-vector 10 and ignore the tail of the
- * input. It's more trouble than it's worth to check that the whole input was
- * consumed here, so just be careful to avoid valid prefixes in tests.
+ /* NOTE: The check implemented here may fail if a bad expression
+ * expression string has a prefix that is parseable as a good
+ * expression. E.g., the bad SMT v2 expression "#b10@@@@@@" will
+ * actually return the bit-vector 10 and ignore the tail of the
+ * input. It's more trouble than it's worth to check that the whole
+ * input was consumed here, so just be careful to avoid valid
+ * prefixes in tests.
*/
void tryBadExpr(const string badExpr, bool strictMode = false) {
// Debug.on("parser");
// Debug.on("parser-extra");
// cout << "Testing bad expr: '" << badExpr << "'\n";
-
+
Parser *parser =
ParserBuilder(*d_exprManager,"test")
.withStringInput(badExpr)
@@ -174,7 +176,6 @@ protected:
}
void setUp() {
-cout << "SET UP\n";
d_exprManager = new ExprManager;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback