Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. pragma solidity ^0.4.7;
  2. import "remix_tests.sol"; // this import is automatically injected by Remix.
  3. import "./ballot.sol";
  4.  
  5. contract test3 {
  6.  
  7. Ballot ballotToTest;
  8. function beforeAll () {
  9. ballotToTest = new Ballot(2);
  10. }
  11.  
  12. function checkWinningProposal () public {
  13. ballotToTest.vote(1);
  14. Assert.equal(ballotToTest.winningProposal(), uint(1), "1 should be the winning proposal");
  15. }
  16.  
  17. function checkWinninProposalWithReturnValue () public constant returns (bool) {
  18. return true;
  19. }
  20. }
Add Comment
Please, Sign In to add comment