Skip to content

Commit

Permalink
fix test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
sarvalabs-manish committed Dec 20, 2023
1 parent 475640d commit 7c519d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assetid_v0_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestAssetIDv0(t *testing.T) {
require.Equal(t, x.Address, assetID.Address())

// Check type conversions
require.Equal(t, string(assetID), assetID.String())
require.Equal(t, "0x"+string(assetID), assetID.String())
require.Equal(t, must(decodeHexString(string(assetID))), assetID.Bytes())

// Check identifier conversion
Expand All @@ -47,7 +47,7 @@ func TestAssetIDv0(t *testing.T) {
require.Equal(t, x.Stateful, identifier.IsStateful())

require.Equal(t, x.Dimension, identifier.Dimension())
require.Equal(t, x.Standard, identifier.Standard())
require.Equal(t, uint64(x.Standard), identifier.Standard())
require.Equal(t, x.Address, identifier.Address())

// Check serialization
Expand Down
4 changes: 2 additions & 2 deletions logicid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestLogicIDv0(t *testing.T) {
require.Equal(t, x.Address, logicID.Address())

// Check type conversions
require.Equal(t, string(logicID), logicID.String())
require.Equal(t, "0x"+string(logicID), logicID.String())
require.Equal(t, must(decodeHexString(string(logicID))), logicID.Bytes())

// Check identifier conversion
Expand All @@ -50,7 +50,7 @@ func TestLogicIDv0(t *testing.T) {
require.Equal(t, x.Interactive, identifier.HasInteractableSites())
require.Equal(t, x.AssetLogic, identifier.AssetLogic())

require.Equal(t, x.Edition, identifier.Edition())
require.Equal(t, uint64(x.Edition), identifier.Edition())
require.Equal(t, x.Address, identifier.Address())

// Check serialization
Expand Down

0 comments on commit 7c519d2

Please sign in to comment.