diff options
author | Felix Lange <fjl@twurst.com> | 2015-09-09 09:34:15 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-09-11 01:41:51 +0800 |
commit | 24bb68e7cf546153436f1d38a7227fdf75d73343 (patch) | |
tree | fa85e497a639af7aa8ad1cc83dc09fe104fbd7df /rlp/encode_test.go | |
parent | bc17dba8fba0f3007398f231f07916a95ed963ac (diff) | |
download | dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.gz dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.bz2 dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.lz dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.xz dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.zst dexon-24bb68e7cf546153436f1d38a7227fdf75d73343.zip |
rlp: add RawValue
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r-- | rlp/encode_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go index b550d4303..a3f30d804 100644 --- a/rlp/encode_test.go +++ b/rlp/encode_test.go @@ -204,6 +204,11 @@ var encTests = []encTest{ output: "F90200CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376CF84617364668471776572847A786376", }, + // RawValue + {val: RawValue(unhex("01")), output: "01"}, + {val: RawValue(unhex("82FFFF")), output: "82FFFF"}, + {val: []RawValue{unhex("01"), unhex("02")}, output: "C20102"}, + // structs {val: simplestruct{}, output: "C28080"}, {val: simplestruct{A: 3, B: "foo"}, output: "C50383666F6F"}, |