pull/7/head
Iuri Matias 7 years ago
parent ba6bbd8541
commit dd88eedbf6
  1. 13
      sol/tests.sol
  2. 4
      src/deployer.js
  3. 2
      src/testRunner.js

@ -15,8 +15,6 @@ library Assert {
function equal(uint a, uint b, string message) public returns (bool result) {
result = (a == b);
AssertionEvent(result, message);
//result = true;
//return true;
}
function equal(int a, int b, string message) public returns (bool result) {
@ -94,12 +92,11 @@ library Assert {
AssertionEvent(result, message);
}
// // TODO: needs to be convert to bytes first to be comparable
// //function notEqual(string a, string b, string message) public returns (bool result) {
// // result = (a != b);
// // AssertionEvent(result, message);
// //}
// TODO: needs to be convert to bytes first to be comparable
//function notEqual(string a, string b, string message) public returns (bool result) {
// result = (a != b);
// AssertionEvent(result, message);
//}
}

@ -82,7 +82,6 @@ function deployAll (compileResult, web3, callback) {
deployObject.send({
from: accounts[0],
gas: Math.ceil(gasValue * 1.2)
//gas: 1200000
}).on('receipt', function (receipt) {
contractObject.options.address = receipt.contractAddress
contractObject.options.from = accounts[0]
@ -93,7 +92,8 @@ function deployAll (compileResult, web3, callback) {
nextEach()
}).on('error', function(err) {
console.dir(err);
console.dir(err)
nextEach(err)
})
})
}, function () {

@ -84,8 +84,6 @@ function runTest (testName, testObject, testCallback, resultsCallback) {
}
next()
}).on('error', function(err) {
console.dir("======== error ========");
console.dir(err);
next(err);
})
}

Loading…
Cancel
Save