Skip to content

Commit 945836d

Browse files
committed
Use outputSelection in jsonio tests
1 parent 970af50 commit 945836d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

test/package.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ tape('Compilation', function (t) {
7979

8080
var input = {
8181
'language': 'Solidity',
82+
'settings': {
83+
'outputSelection': {
84+
'*': {
85+
'*': [ 'evm.bytecode' ]
86+
}
87+
}
88+
},
8289
'sources': {
8390
'lib.sol': {
8491
'content': 'library L { function f() returns (uint) { return 7; } }'
@@ -105,6 +112,13 @@ tape('Compilation', function (t) {
105112
t.test('invalid source code fails properly with standard JSON', function (st) {
106113
var input = {
107114
'language': 'Solidity',
115+
'settings': {
116+
'outputSelection': {
117+
'*': {
118+
'*': [ 'evm.bytecode' ]
119+
}
120+
}
121+
},
108122
'sources': {
109123
'x.sol': {
110124
'content': 'contract x { this is an invalid contract }'
@@ -132,6 +146,13 @@ tape('Compilation', function (t) {
132146

133147
var input = {
134148
'language': 'Solidity',
149+
'settings': {
150+
'outputSelection': {
151+
'*': {
152+
'*': [ 'evm.bytecode' ]
153+
}
154+
}
155+
},
135156
'sources': {
136157
'cont.sol': {
137158
'content': 'import "lib.sol"; contract x { function g() { L.f(); } }'
@@ -163,6 +184,13 @@ tape('Compilation', function (t) {
163184
t.test('compiling standard JSON (using wrapper)', function (st) {
164185
var input = {
165186
'language': 'Solidity',
187+
'settings': {
188+
'outputSelection': {
189+
'*': {
190+
'*': [ 'evm.bytecode' ]
191+
}
192+
}
193+
},
166194
'sources': {
167195
'lib.sol': {
168196
'content': 'library L { function f() returns (uint) { return 7; } }'

0 commit comments

Comments
 (0)