setup unit testing
This commit is contained in:
parent
32b6089241
commit
4e07b8b28b
@ -31,13 +31,14 @@ contract TokenDiverTest is Test {
|
||||
vm.deal(USER2, STARTING_USER_BALANCE); // @auditor: user2 got 10 ether
|
||||
}
|
||||
|
||||
function test_assertSetUp() public {
|
||||
function test_assertSetUp() public view {
|
||||
// then what?
|
||||
|
||||
// USER has no ERC721 NFT of TOKEN_ID
|
||||
assertTrue(address(erc721Mock.ownerOf(TOKEN_ID)) == address(USER2));
|
||||
// USER has no balance
|
||||
// USER2 has STARTING_USER_BALANCE
|
||||
// USER has the ERC721 NFT of TOKEN_ID
|
||||
assertTrue(address(erc721Mock.ownerOf(TOKEN_ID)) == address(USER));
|
||||
|
||||
// USER2 has no ERC721 NFT of TOKEN_ID
|
||||
assertTrue(address(erc721Mock.ownerOf(TOKEN_ID)) != address(USER2));
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user