Skip to content

Commit

Permalink
test(crypto): update crypto tests
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f committed Aug 29, 2024
1 parent d30aa03 commit eb62053
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crypto/address_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ func TestFromString(t *testing.T) {
[]byte{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
crypto.AddressTypeTreasury,
},
{
"00",
bech32m.InvalidLengthError(2),
nil,
0,
},
{
"",
bech32m.InvalidLengthError(0),
Expand Down Expand Up @@ -159,7 +165,7 @@ func TestFromString(t *testing.T) {
}
}

func TestAddressEncoding(t *testing.T) {
func TestAddressDecoding(t *testing.T) {
tests := []struct {
size int
hex string
Expand Down

0 comments on commit eb62053

Please sign in to comment.