diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-25 23:46:29 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-25 23:46:29 +0800 |
commit | 181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea (patch) | |
tree | 3c38cb00b62e8d1c68edab40b013f7972e4f5723 /rlp/encode_test.go | |
parent | ff5578fc715262cd8ae62e7d0f961a6e977a8727 (diff) | |
download | dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.gz dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.bz2 dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.lz dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.xz dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.zst dexon-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.zip |
rlp: encode nil array pointers as empty list or string
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r-- | rlp/encode_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go index 611514bda..6eb930d6c 100644 --- a/rlp/encode_test.go +++ b/rlp/encode_test.go @@ -202,8 +202,10 @@ var encTests = []encTest{ {val: (*uint)(nil), output: "80"}, {val: (*string)(nil), output: "80"}, {val: (*[]byte)(nil), output: "80"}, + {val: (*[10]byte)(nil), output: "80"}, {val: (*big.Int)(nil), output: "80"}, {val: (*[]string)(nil), output: "C0"}, + {val: (*[10]string)(nil), output: "C0"}, {val: (*[]interface{})(nil), output: "C0"}, {val: (*[]struct{ uint })(nil), output: "C0"}, {val: (*interface{})(nil), output: "C0"}, |