embark-area-51/test_app/app/contracts/test.sol

18 lines
233 B
Solidity
Raw Normal View History

pragma solidity ^0.4.11;
library AMyLib {
function add(uint _a, uint _b) returns (uint _c) {
return _a + _b;
}
}
contract Test {
function testAdd() constant returns (uint _result) {
return AMyLib.add(1, 2);
}
}