diff options
author | Robert Zaremba <robert.zaremba@scale-it.pl> | 2017-12-02 05:32:04 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2017-12-21 22:14:50 +0800 |
commit | 81d4cafb324d8c4352a40d2cf33c2085d029cd37 (patch) | |
tree | 9675e57a9f7551322c7f4d109c16a905ca026b56 /accounts/abi/unpack_test.go | |
parent | 1afca33eacd39c8cf240d92e9b4310a73de6510f (diff) | |
download | go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.gz go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.bz2 go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.lz go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.xz go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.tar.zst go-tangerine-81d4cafb324d8c4352a40d2cf33c2085d029cd37.zip |
accounts/abi: add unpack into array test
Diffstat (limited to 'accounts/abi/unpack_test.go')
-rw-r--r-- | accounts/abi/unpack_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accounts/abi/unpack_test.go b/accounts/abi/unpack_test.go index 89b3bce8c..391095073 100644 --- a/accounts/abi/unpack_test.go +++ b/accounts/abi/unpack_test.go @@ -337,6 +337,11 @@ func TestMethodMultiReturn(t *testing.T) { "", "Can unpack into a slice", }, { + &[2]interface{}{&bigint, new(string)}, + &[2]interface{}{&expected.Int, &expected.String}, + "", + "Can unpack into an array", + }, { &[]interface{}{new(int), new(int)}, &[]interface{}{&expected.Int, &expected.String}, "abi: cannot unmarshal *big.Int in to int", |