Create tests for SafeMath

This commit is contained in:
Arseniy Klempner
2016-11-23 19:51:23 -08:00
parent 1548e38db1
commit b6feefaed9
2 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,18 @@
pragma solidity ^0.4.4;
import '../SafeMath.sol';
contract SafeMathMock is SafeMath {
uint public result;
function multiply(uint a, uint b) {
result = safeMul(a, b);
}
function subtract(uint a, uint b) {
result = safeSub(a, b);
}
function add(uint a, uint b) {
result = safeAdd(a, b);
}
}