common/hexutil: fix Test{Decode,Unmarshal}Uint64 on 32bit arch (#3363)

pull/3361/head
Felix Lange 8 years ago committed by Jeffrey Wilcke
parent e949a2ed2f
commit 318ad3c1e4
  1. 2
      common/hexutil/hexutil_test.go
  2. 2
      common/hexutil/json_test.go

@ -105,7 +105,7 @@ var (
{input: `0`, wantErr: ErrMissingPrefix},
{input: `0x`, wantErr: ErrEmptyNumber},
{input: `0x01`, wantErr: ErrLeadingZero},
{input: `0xfffffffffffffffff`, wantErr: ErrUintRange},
{input: `0xfffffffffffffffff`, wantErr: ErrUint64Range},
{input: `0xx`, wantErr: ErrSyntax},
{input: `0x1zz01`, wantErr: ErrSyntax},
// valid

@ -202,7 +202,7 @@ var unmarshalUint64Tests = []unmarshalTest{
{input: `"0"`, wantErr: ErrMissingPrefix},
{input: `"0x"`, wantErr: ErrEmptyNumber},
{input: `"0x01"`, wantErr: ErrLeadingZero},
{input: `"0xfffffffffffffffff"`, wantErr: ErrUintRange},
{input: `"0xfffffffffffffffff"`, wantErr: ErrUint64Range},
{input: `"0xx"`, wantErr: ErrSyntax},
{input: `"0x1zz01"`, wantErr: ErrSyntax},

Loading…
Cancel
Save