aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-25 23:46:29 +0800
committerFelix Lange <fjl@twurst.com>2015-03-25 23:46:29 +0800
commit181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea (patch)
tree3c38cb00b62e8d1c68edab40b013f7972e4f5723 /rlp/encode_test.go
parentff5578fc715262cd8ae62e7d0f961a6e977a8727 (diff)
downloadgo-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar
go-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.gz
go-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.bz2
go-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.lz
go-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.xz
go-tangerine-181a21c67c8dafe027cd7fb43fe3f68eaf2a52ea.tar.zst
go-tangerine-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.go2
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"},