Commit b5469310 by Makoto Inoue

Add bounty test to test against checkInvarient

parent 441e85d8
......@@ -23,6 +23,10 @@ contract SimpleTokenBounty is PullPayment {
return target;
}
function checkInvarient() returns(bool){
return true;
}
function claim(SimpleToken target) {
address researcher = researchers[target];
if (researcher == 0) throw;
......
contract('Bounty', function(accounts) {
it.only("create target", function(done){
var bounty = Bounty.deployed();
bounty.createTarget().
then(function() {
return bounty.checkInvarient.call()
}).
then(function(result) {
assert.isTrue(result);
}).
then(done);
})
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment