aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2017-03-07 19:37:53 +0800
committerFelix Lange <fjl@twurst.com>2017-03-07 19:45:12 +0800
commiteee96a5bb7439ccee583d23e53be018fe7c35cfb (patch)
tree93e027d5c6456eb87b8d2e1e13977251bc500b2f /rlp/encode_test.go
parent667cd518ceada7084698c8ea11d966db9f9e674a (diff)
downloadgo-tangerine-eee96a5bb7439ccee583d23e53be018fe7c35cfb.tar.gz
go-tangerine-eee96a5bb7439ccee583d23e53be018fe7c35cfb.tar.zst
go-tangerine-eee96a5bb7439ccee583d23e53be018fe7c35cfb.zip
rlp: add support for "-" struct tag
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r--rlp/encode_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index 6f38294e4..827960f7c 100644
--- a/rlp/encode_test.go
+++ b/rlp/encode_test.go
@@ -218,6 +218,7 @@ var encTests = []encTest{
{val: &tailRaw{A: 1, Tail: []RawValue{unhex("02")}}, output: "C20102"},
{val: &tailRaw{A: 1, Tail: []RawValue{}}, output: "C101"},
{val: &tailRaw{A: 1, Tail: nil}, output: "C101"},
+ {val: &hasIgnoredField{A: 1, B: 2, C: 3}, output: "C20103"},
// nil
{val: (*uint)(nil), output: "80"},