mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-26 01:28:56 +00:00
20 lines
434 B
Solidity
20 lines
434 B
Solidity
|
pragma solidity ^0.4.2;
|
||
|
|
||
|
import "truffle/Assert.sol";
|
||
|
import "truffle/DeployedAddresses.sol";
|
||
|
import "../contracts/SimpleStorage.sol";
|
||
|
|
||
|
contract TestSimpleStorage {
|
||
|
|
||
|
function testItStoresAValue() public {
|
||
|
SimpleStorage simpleStorage = SimpleStorage(DeployedAddresses.SimpleStorage());
|
||
|
|
||
|
simpleStorage.set(89);
|
||
|
|
||
|
uint expected = 89;
|
||
|
|
||
|
Assert.equal(simpleStorage.get(), expected, "It should store the value 89.");
|
||
|
}
|
||
|
|
||
|
}
|