Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
0Tech committed Apr 11, 2023
1 parent 8e250dd commit b3f3072
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions x/collection/collection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,14 @@ func TestParseCoins(t *testing.T) {
})
}
}

func TestDefaultNextClassIDs(t *testing.T) {
contractID := "deadbeef"
require.Equal(t, collection.NextClassIDs{
ContractId: contractID,
Fungible: sdk.NewUint(1),
NonFungible: sdk.NewUint(1 << 28).Incr(), // "10000000 + 1"
},
collection.DefaultNextClassIDs(contractID),
)
}

0 comments on commit b3f3072

Please sign in to comment.