From fec2b5751108088ff651ce6eed09bf3aa65f281e Mon Sep 17 00:00:00 2001 From: "Christopher L. Conway" Date: Tue, 4 May 2010 22:27:40 +0000 Subject: [PATCH] Adding simple SMT2 parser tests --- test/unit/parser/parser_black.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/unit/parser/parser_black.h b/test/unit/parser/parser_black.h index 0389a75ef..b8060086f 100644 --- a/test/unit/parser/parser_black.h +++ b/test/unit/parser/parser_black.h @@ -149,8 +149,10 @@ const int numBadSmtExprs = sizeof(badSmtExprs) / sizeof(string); const string goodSmt2Inputs[] = { "", // empty string is OK "(set-logic QF_UF)", + "(set-info :notes |This is a note, take note!|)", "(assert true)", "(check-sat)", + "(exit)", "(assert false) (check-sat)", "(declare-fun a () Bool) (declare-fun b () Bool)", "(declare-fun a () Bool) (declare-fun b () Bool) (assert (=> (and (=> a b) a) b))", @@ -179,6 +181,7 @@ const int numGoodSmt2Exprs = sizeof(goodSmt2Exprs) / sizeof(string); const string badSmt2Inputs[] = { "(assert)", // no args + "(set-info :notes |Symbols can't contain the | character|)", "(check-sat true)", // shouldn't have an arg "(declare-sort a)", // no arg "(declare-sort a 0) (declare-sort a 0)", // double decl -- 2.30.2