Skip to content

Commit de233a9

Browse files
committed
Add test
1 parent 902cf85 commit de233a9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/statements.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ describe('generic statements', () => {
5959
util.report(output.errors);
6060
});
6161

62-
62+
it.only('should compile after instrumenting many unbracketed statements', () => {
63+
const contract = util.getCode('statements/oraclize-plus.sol');
64+
const info = getInstrumentedVersion(contract, filePath);
65+
const output = JSON.parse(solc.compile(util.codeToCompilerInput(info.contract)));
66+
util.report(output.errors);
67+
});
6368

6469
it('should NOT pass tests if the contract has a compilation error', () => {
6570
const contract = util.getCode('statements/compilation-error.sol');

0 commit comments

Comments
 (0)