mirror of
https://github.com/fluencelabs/smartcontracts
synced 2025-04-24 18:52:19 +00:00
26 lines
606 B
Solidity
26 lines
606 B
Solidity
pragma solidity ^0.4.2;
|
|
|
|
import "truffle/Assert.sol";
|
|
import "truffle/DeployedAddresses.sol";
|
|
import "../contracts/MetaCoin.sol";
|
|
|
|
contract TestMetacoin {
|
|
|
|
function testInitialBalanceUsingDeployedContract() {
|
|
MetaCoin meta = new MetaCoin();
|
|
|
|
uint expected = 10000;
|
|
|
|
Assert.equal(meta.getBalance(tx.origin), expected, "Owner should have 10000 MetaCoin initially");
|
|
}
|
|
|
|
function testInitialBalanceWithNewMetaCoin() {
|
|
MetaCoin meta = new MetaCoin();
|
|
|
|
uint expected = 10000;
|
|
|
|
Assert.equal(meta.getBalance(tx.origin), expected, "Owner should have 10000 MetaCoin initially");
|
|
}
|
|
|
|
}
|