diff options
author | Aina Niemetz <aina.niemetz@gmail.com> | 2020-09-14 21:21:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-14 23:21:03 -0500 |
commit | cdb338bb5c0fc033f6788549985c5a60ab1323b3 (patch) | |
tree | fb6ce5e0c9f17d8fb5ed7c8141a21e037e859ecd /test/api/boilerplate.cpp | |
parent | 2b5902b1c54b1a4717273d501333dd37b8715f9d (diff) |
Rename system tests to api tests and remove obsolete Java test. (#5066)
Diffstat (limited to 'test/api/boilerplate.cpp')
-rw-r--r-- | test/api/boilerplate.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/api/boilerplate.cpp b/test/api/boilerplate.cpp new file mode 100644 index 000000000..315cec7bf --- /dev/null +++ b/test/api/boilerplate.cpp @@ -0,0 +1,32 @@ +/********************* */ +/*! \file boilerplate.cpp + ** \verbatim + ** Top contributors (to current version): + ** Morgan Deters, Aina Niemetz + ** This file is part of the CVC4 project. + ** Copyright (c) 2009-2020 by the authors listed in the file AUTHORS + ** in the top-level source directory) and their institutional affiliations. + ** All rights reserved. See the file COPYING in the top-level source + ** directory for licensing information.\endverbatim + ** + ** \brief A simple start-up/tear-down test for CVC4. + ** + ** This simple test just makes sure that the public interface is + ** minimally functional. It is useful as a template to use for other + ** system tests. + **/ + +#include <iostream> +#include <sstream> + +#include "api/cvc4cpp.h" + +using namespace CVC4::api; +using namespace std; + +int main() { + Solver slv; + Result r = slv.checkEntailed(slv.mkBoolean(true)); + return r.isEntailed() ? 0 : 1; +} + |