// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.13; import "forge-std/Test.sol"; import {Unaboomer} from "../src/Unaboomer.sol"; import {Mailbomb} from "../src/Mailbomb.sol"; contract UnaboomerTest is Test { Unaboomer public boomr; Mailbomb public bomb; function setUp() public { boomr = new Unaboomer(); bomb = new Mailbomb(); bomb.setUnaboomerContract(address(boomr)); } function testWithdraws() public { vm.deal(address(boomr), 11 ether); vm.prank(address(boomr.owner())); boomr.withdraw(); } function testMint() public { hoax(address(1)); boomr.mint{value: 0.05 ether}(5); assertEq(boomr.totalSupply(), 5); assertEq(boomr.tokenDead(1), false); } }