|
|
|
@ -43,13 +43,12 @@ contract UnaboomerTest is Test {
|
|
|
|
|
assertEq(boomr.balanceOf(t2), 20);
|
|
|
|
|
assertEq(bomb.bombsAssembled(), 100);
|
|
|
|
|
assertEq(bomb.balanceOf(t2, 1), 40);
|
|
|
|
|
// sending bombs should change supplies
|
|
|
|
|
// sending bombs should change supplies and update kill count
|
|
|
|
|
hoax(t1);
|
|
|
|
|
main.sendBombs(60);
|
|
|
|
|
// for (uint256 i; i < res.length; i++) {
|
|
|
|
|
// console.log(res[i]);
|
|
|
|
|
// console.log(killed[i]);
|
|
|
|
|
// }
|
|
|
|
|
main.sendBombs(40);
|
|
|
|
|
assertEq(bomb.balanceOf(t1, 1), 20);
|
|
|
|
|
assertEq(boomr.killCount() > 0, true);
|
|
|
|
|
console.log(boomr.killCount());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// function testX() public {}
|
|
|
|
|