Increase test coverage to 93% #549 (#768)

* Increase test coverage to 93% #549

* cover missing AllowanceCrowdsale branch

* improve Heritable coverage

* fix lint errors

* proper equal assert

* address review comments

* remove unneeded const definitions and imports

* use assertRevert

* reword scenario description

* Increase test coverage to 93% #549

* cover missing AllowanceCrowdsale branch

* improve Heritable coverage

* fix lint errors

* proper equal assert

* address review comments

* remove unneeded const definitions and imports

* use assertRevert

* reword scenario description

* move HIGH_GOAL constant to the scope where it's used

* remove const at top level

* address review comments
This commit is contained in:
Federico Gimenez
2018-04-17 20:05:34 +02:00
committed by Francisco Giordano
parent 6a7114fdb4
commit f4bdaf49a1
5 changed files with 82 additions and 8 deletions

View File

@ -5,13 +5,22 @@ import "../../contracts/math/Math.sol";
contract MathMock {
uint64 public result;
uint64 public result64;
uint256 public result256;
function max64(uint64 a, uint64 b) public {
result = Math.max64(a, b);
result64 = Math.max64(a, b);
}
function min64(uint64 a, uint64 b) public {
result = Math.min64(a, b);
result64 = Math.min64(a, b);
}
function max256(uint256 a, uint256 b) public {
result256 = Math.max256(a, b);
}
function min256(uint256 a, uint256 b) public {
result256 = Math.min256(a, b);
}
}