github.com/annchain/OG@v0.0.9/vm/vm_test/contracts/asserts.sol (about)

     1  pragma solidity ^0.4.20;
     2  
     3  contract asserts {
     4  
     5      mapping (address => address) public calledby;          // (addr => pID) record if called successfully
     6  
     7      function req() payable public {
     8          calledby[msg.sender] = msg.sender;
     9          // gas stop
    10          require(msg.value % 2 == 0);
    11      }
    12      function asrt() payable public {
    13          calledby[msg.sender] = msg.sender;
    14          // gas all gone
    15          assert(msg.value % 2 == 0);
    16      }
    17  }