Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kingster-will committed Mar 23, 2024
1 parent a007489 commit ffded33
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/foundry/integration/flows/royalty/Royalty.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ contract Flows_Integration_Disputes is BaseIntegration {

address[] memory accounts = new address[](2);
// If you face InvalidSplit__AccountsOutOfOrder, shuffle the order of accounts (swap index 0 and 1)
accounts[0] = ipAcct[3];
accounts[1] = ipAcct3_ancestorVault;
accounts[1] = ipAcct[3];
accounts[0] = ipAcct3_ancestorVault;

royaltyPolicyLAP.distributeIpPoolFunds(ipAcct[3], address(mockToken), accounts, address(u.dan));

Expand Down
8 changes: 8 additions & 0 deletions test/foundry/registries/IPAssetRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ contract IPAssetRegistryTest is BaseTest {
registry.register(address(erc721WithoutMetadata), 999);
}

function test_IPAssetRegistry_not_registered() public {
assertTrue(!registry.isRegistered(address(0)));
assertTrue(!registry.isRegistered(address(0x12345)));
assertTrue(!registry.isRegistered(address(this)));
mockNFT.mintId(alice, 1000);
assertTrue(!registry.isRegistered(ipAssetRegistry.registerIpAccount(block.chainid, address(mockNFT), 1000)));
}

/// @notice Helper function for generating an account address.
function _getIPAccount(uint256 contractId) internal view returns (address) {
return
Expand Down

0 comments on commit ffded33

Please sign in to comment.