Updated compiler version and tests

This commit is contained in:
Игорь Соболев
2019-07-01 14:00:17 +03:00
parent db812c1f0c
commit bbad2f3991
3 changed files with 11 additions and 3 deletions

View File

@ -19,6 +19,15 @@ contract("Testing Lazy", accounts => {
assert.equal(task.status, 2);
});
it("should pass correct proof", async () => {
let instance = await Lazy.deployed();
let task = await instance.tasks(1);
assert.equal(task.status, 0);
await instance.challenge(1);
task = await instance.tasks(1);
assert.equal(task.status, 1);
});
});