Skip to content

Commit d51374f

Browse files
author
Leonardo
authored
Merge pull request #422 from ethereum/test-expect-noerror
Ensure that no errors (from solc) are thrown in tests
2 parents 9ab6fd3 + 1ffa21e commit d51374f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/compiler.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@ function runTests (solc, versionText) {
435435
};
436436

437437
var output = JSON.parse(solc.compile(JSON.stringify(input)));
438+
st.ok(expectNoError(output));
438439
var x = getBytecodeStandard(output, 'cont.sol', 'x');
439440
st.ok(typeof x === 'string');
440441
st.ok(x.length > 0);
@@ -485,6 +486,7 @@ function runTests (solc, versionText) {
485486
}
486487

487488
var output = JSON.parse(solc.compile(JSON.stringify(input), findImports));
489+
st.ok(expectNoError(output));
488490
var x = getBytecodeStandard(output, 'cont.sol', 'x');
489491
st.ok(typeof x === 'string');
490492
st.ok(x.length > 0);
@@ -530,6 +532,7 @@ function runTests (solc, versionText) {
530532
};
531533

532534
var output = JSON.parse(solc.compile(JSON.stringify(input)));
535+
st.ok(expectNoError(output));
533536
var x = getBytecodeStandard(output, 'cont.sol', 'x');
534537
st.ok(typeof x === 'string');
535538
st.ok(x.length > 0);
@@ -572,6 +575,7 @@ function runTests (solc, versionText) {
572575
};
573576

574577
var output = JSON.parse(solc.lowlevel.compileStandard(JSON.stringify(input)));
578+
st.ok(expectNoError(output));
575579
var x = getBytecodeStandard(output, 'cont.sol', 'x');
576580
st.ok(typeof x === 'string');
577581
st.ok(x.length > 0);

0 commit comments

Comments
 (0)