accounts/abi: fix TestConvertType error message expected values

This commit is contained in:
Weixie Cui 2026-04-17 20:45:17 +08:00
parent eb67d61933
commit 10c33612fa

View file

@ -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)))