Skip to content

Commit d1b6b0b

Browse files
committed
In tests ensure that no link references are reported for non-library outputs
1 parent b46886d commit d1b6b0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/compiler.js

+2
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ function runTests (solc, versionText) {
439439
var B = getBytecodeStandard(output, 'b.sol', 'B');
440440
st.ok(typeof B === 'string');
441441
st.ok(B.length > 0);
442+
st.ok(Object.keys(linker.findLinkReferences(B)).length === 0);
442443
var BGas = getGasEstimate(output, 'b.sol', 'B');
443444
st.ok(typeof BGas === 'object');
444445
st.ok(typeof BGas['creation'] === 'object');
@@ -493,6 +494,7 @@ function runTests (solc, versionText) {
493494
var B = getBytecodeStandard(output, 'b.sol', 'B');
494495
st.ok(typeof B === 'string');
495496
st.ok(B.length > 0);
497+
st.ok(Object.keys(linker.findLinkReferences(B)).length === 0);
496498
st.end();
497499
});
498500

0 commit comments

Comments
 (0)