Skip to content

Commit

Permalink
Merge pull request #319 from ethereum/smtchecker-tests
Browse files Browse the repository at this point in the history
Add SMTChecker smoke tests
  • Loading branch information
axic authored Dec 12, 2018
2 parents d3b6848 + fbc7378 commit 1af3817
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const semver = require('semver');
require('./linker.js');
require('./translate.js');
require('./package.js');
require('./smtchecker.js');
require('./abi.js');
require('./determinism.js');

Expand Down
18 changes: 18 additions & 0 deletions test/smtchecker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const tape = require('tape');
const smtchecker = require('../smtchecker.js');

tape('SMTChecker', function (t) {
t.test('smoke test with no axuiliaryInputRequested', function (st) {
var input = {};
var output = {};
st.equal(smtchecker.handleSMTQueries(input, output), null);
st.end();
});

t.test('smoke test with no smtlib2queries', function (st) {
var input = {};
var output = { auxiliaryInputRequested: {} };
st.equal(smtchecker.handleSMTQueries(input, output), null);
st.end();
});
});

0 comments on commit 1af3817

Please # to comment.