Skip to content

Commit

Permalink
Add CLI test for --optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Oct 29, 2019
1 parent d268ffa commit 6d36eac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ tape('CLI', function (t) {
spt.end();
});

t.test('--bin --optimize', function (st) {
var spt = spawn(st, './solcjs --bin --optimize test/contracts/Smoke.sol');
spt.stderr.empty();
spt.succeeds();
spt.end();
});

t.test('invalid file specified', function (st) {
var spt = spawn(st, './solcjs --bin test/fileNotFound.sol');
spt.stderr.match(/^Error reading /);
Expand Down

0 comments on commit 6d36eac

Please sign in to comment.