Skip to content

Commit 1ffa21e

Browse files
committed
Ensure that no errors (from solc) are thrown in tests
1 parent b90ff0b commit 1ffa21e

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
@@ -421,6 +421,7 @@ function runTests (solc, versionText) {
421421
};
422422

423423
var output = JSON.parse(solc.compile(JSON.stringify(input)));
424+
st.ok(expectNoError(output));
424425
var x = getBytecodeStandard(output, 'cont.sol', 'x');
425426
st.ok(typeof x === 'string');
426427
st.ok(x.length > 0);
@@ -463,6 +464,7 @@ function runTests (solc, versionText) {
463464
}
464465

465466
var output = JSON.parse(solc.compile(JSON.stringify(input), findImports));
467+
st.ok(expectNoError(output));
466468
var x = getBytecodeStandard(output, 'cont.sol', 'x');
467469
st.ok(typeof x === 'string');
468470
st.ok(x.length > 0);
@@ -508,6 +510,7 @@ function runTests (solc, versionText) {
508510
};
509511

510512
var output = JSON.parse(solc.compile(JSON.stringify(input)));
513+
st.ok(expectNoError(output));
511514
var x = getBytecodeStandard(output, 'cont.sol', 'x');
512515
st.ok(typeof x === 'string');
513516
st.ok(x.length > 0);
@@ -550,6 +553,7 @@ function runTests (solc, versionText) {
550553
};
551554

552555
var output = JSON.parse(solc.lowlevel.compileStandard(JSON.stringify(input)));
556+
st.ok(expectNoError(output));
553557
var x = getBytecodeStandard(output, 'cont.sol', 'x');
554558
st.ok(typeof x === 'string');
555559
st.ok(x.length > 0);

0 commit comments

Comments
 (0)