mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-12 01:41:36 +00:00
accounts/abi: fix TestConvertType error message expected values
This commit is contained in:
parent
eb67d61933
commit
10c33612fa
1 changed files with 2 additions and 2 deletions
|
|
@ -237,10 +237,10 @@ func TestConvertType(t *testing.T) {
|
|||
t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(2))
|
||||
}
|
||||
if out2[1].X.Cmp(big.NewInt(3)) != 0 {
|
||||
t.Errorf("ConvertType failed, got %v want %v", out2[0].X, big.NewInt(1))
|
||||
t.Errorf("ConvertType failed, got %v want %v", out2[0].X, big.NewInt(3))
|
||||
}
|
||||
if out2[1].Y.Cmp(big.NewInt(4)) != 0 {
|
||||
t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(2))
|
||||
t.Errorf("ConvertType failed, got %v want %v", out2[1].Y, big.NewInt(4))
|
||||
}
|
||||
// Array Type
|
||||
val3 := reflect.New(reflect.ArrayOf(2, reflect.StructOf(fields)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue