summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-02-16 18:07:41 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-02-16 18:07:41 +0000
commit48142c912d7571ee204b373eadf835c5b676af2c (patch)
tree5caf584809cf5b28882edfbcbc73e86efe7a0ae9 /test
parent69248e7ee22494ccefe0ce21fe4b834eb60df2e1 (diff)
Converting semantic predicates in parser to AlwaysAssertions
Diffstat (limited to 'test')
-rw-r--r--test/unit/parser/parser_black.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/unit/parser/parser_black.h b/test/unit/parser/parser_black.h
index 5d6326166..dbf434ed2 100644
--- a/test/unit/parser/parser_black.h
+++ b/test/unit/parser/parser_black.h
@@ -66,6 +66,7 @@ const string badCvc4Inputs[] = {
"0x : INT;", // 0x isn't an identifier
"a, b : BOOLEAN\nQUERY (a => b) AND a => b;", // no semicolon after decl
"a : BOOLEAN; a: BOOLEAN;" // double decl
+ "a, b: BOOLEAN; QUERY a(b);" // non-function used as function
};
const int numBadCvc4Inputs = sizeof(badCvc4Inputs) / sizeof(string);
@@ -142,7 +143,8 @@ const string badSmtExprs[] = {
"(a IMPLIES b)", // infix AND wrong case
"(not a b)", // wrong arity
"not a", // needs parens
- "(ite a x)" // wrong arity
+ "(ite a x)", // wrong arity
+ "(a b)" // using non-function as function
};
const int numBadSmtExprs = sizeof(badSmtExprs) / sizeof(string);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback