forked from cerc-io/plugeth
common/hexutil: fix Test{Decode,Unmarshal}Uint64 on 32bit arch (#3363)
This commit is contained in:
parent
e949a2ed2f
commit
318ad3c1e4
@ -105,7 +105,7 @@ var (
|
|||||||
{input: `0`, wantErr: ErrMissingPrefix},
|
{input: `0`, wantErr: ErrMissingPrefix},
|
||||||
{input: `0x`, wantErr: ErrEmptyNumber},
|
{input: `0x`, wantErr: ErrEmptyNumber},
|
||||||
{input: `0x01`, wantErr: ErrLeadingZero},
|
{input: `0x01`, wantErr: ErrLeadingZero},
|
||||||
{input: `0xfffffffffffffffff`, wantErr: ErrUintRange},
|
{input: `0xfffffffffffffffff`, wantErr: ErrUint64Range},
|
||||||
{input: `0xx`, wantErr: ErrSyntax},
|
{input: `0xx`, wantErr: ErrSyntax},
|
||||||
{input: `0x1zz01`, wantErr: ErrSyntax},
|
{input: `0x1zz01`, wantErr: ErrSyntax},
|
||||||
// valid
|
// valid
|
||||||
|
@ -202,7 +202,7 @@ var unmarshalUint64Tests = []unmarshalTest{
|
|||||||
{input: `"0"`, wantErr: ErrMissingPrefix},
|
{input: `"0"`, wantErr: ErrMissingPrefix},
|
||||||
{input: `"0x"`, wantErr: ErrEmptyNumber},
|
{input: `"0x"`, wantErr: ErrEmptyNumber},
|
||||||
{input: `"0x01"`, wantErr: ErrLeadingZero},
|
{input: `"0x01"`, wantErr: ErrLeadingZero},
|
||||||
{input: `"0xfffffffffffffffff"`, wantErr: ErrUintRange},
|
{input: `"0xfffffffffffffffff"`, wantErr: ErrUint64Range},
|
||||||
{input: `"0xx"`, wantErr: ErrSyntax},
|
{input: `"0xx"`, wantErr: ErrSyntax},
|
||||||
{input: `"0x1zz01"`, wantErr: ErrSyntax},
|
{input: `"0x1zz01"`, wantErr: ErrSyntax},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user