mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-25 00:59:05 +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.");
|
|
}
|
|
|
|
}
|