You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function before_test_method1() {
anotherValue = 8;
}
function test_method1() {
assertEq(someValue, uint(3), "some value should be 3");
assertEq(anotherValue, uint(8), "another value should be 8");
}
Output :
Error: [wafr] ERROR: while compiling contracts in path wafr/src: wafr/Test.sol:4:3: Warning: No visibility specified. Defaulting to "public".
function () payable {}
^--------------------^
at throwError (wafr/node_modules/wafr/src/utils/index.js:11:9)
at output.errors.forEach (wafr/node_modules/wafr/src/index.js:573:9)
at Array.forEach (<anonymous>)
at getInputSources (wafr/node_modules/wafr/src/index.js:572:21)
at dir.readFiles (wafr/node_modules/wafr/src/utils/index.js:232:13)
at wafr/node_modules/node-dir/lib/readfiles.js:110:34
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:528:3)
On Nov 3, 2017, at 6:10 AM, Toche Camille ***@***.***> wrote:
Hi !
Before and beforeEach method doesn't work. Can you fix that ? :)
I try this code :
function before_test_method1() {
anotherValue = 8;
}
function test_method1() {
assertEq(someValue, uint(3), "some value should be 3");
assertEq(anotherValue, uint(8), "another value should be 8");
}
Output :
Error: [wafr] ERROR: while compiling contracts in path wafr/src: wafr/Test.sol:4:3: Warning: No visibility specified. Defaulting to "public".
function () payable {}
^--------------------^
at throwError (wafr/node_modules/wafr/src/utils/index.js:11:9)
at output.errors.forEach (wafr/node_modules/wafr/src/index.js:573:9)
at Array.forEach (<anonymous>)
at getInputSources (wafr/node_modules/wafr/src/index.js:572:21)
at dir.readFiles (wafr/node_modules/wafr/src/utils/index.js:232:13)
at wafr/node_modules/node-dir/lib/readfiles.js:110:34
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:528:3)
Version
Mac OS
Node v9.0.0
Solc : Version: 0.4.18+commit.9cf6e910.Darwin.appleclang
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
Hi !
Before and beforeEach method doesn't work. Can you fix that ? :)
I try this code :
Output :
Version
The text was updated successfully, but these errors were encountered: