diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-02-19 18:53:50 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-02-19 18:53:50 +0800 |
commit | 17649edd85b98f00f781415ff02da8441e52db99 (patch) | |
tree | a19b7765292e768933d4aade498fc6e711c0ef84 /rlp/encode_test.go | |
parent | aa36a6ae4f24f07e2c470a21c93ff37ad5861982 (diff) | |
parent | 7d8155714b41cda27fd2c860361c36d33e89d0a9 (diff) | |
download | dexon-17649edd85b98f00f781415ff02da8441e52db99.tar dexon-17649edd85b98f00f781415ff02da8441e52db99.tar.gz dexon-17649edd85b98f00f781415ff02da8441e52db99.tar.bz2 dexon-17649edd85b98f00f781415ff02da8441e52db99.tar.lz dexon-17649edd85b98f00f781415ff02da8441e52db99.tar.xz dexon-17649edd85b98f00f781415ff02da8441e52db99.tar.zst dexon-17649edd85b98f00f781415ff02da8441e52db99.zip |
Merge pull request #2226 from fjl/eip-8
p2p, p2p/discover: EIP-8 changes
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r-- | rlp/encode_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go index a3f30d804..6f38294e4 100644 --- a/rlp/encode_test.go +++ b/rlp/encode_test.go @@ -214,6 +214,10 @@ var encTests = []encTest{ {val: simplestruct{A: 3, B: "foo"}, output: "C50383666F6F"}, {val: &recstruct{5, nil}, output: "C205C0"}, {val: &recstruct{5, &recstruct{4, &recstruct{3, nil}}}, output: "C605C404C203C0"}, + {val: &tailRaw{A: 1, Tail: []RawValue{unhex("02"), unhex("03")}}, output: "C3010203"}, + {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"}, // nil {val: (*uint)(nil), output: "80"}, |