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/decode_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/decode_test.go')
-rw-r--r-- | rlp/decode_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rlp/decode_test.go b/rlp/decode_test.go index ce4f9ecc8..408f1a5a9 100644 --- a/rlp/decode_test.go +++ b/rlp/decode_test.go @@ -438,6 +438,11 @@ var decodeTests = []decodeTest{ error: "rlp: expected input string or byte for uint, decoding into (rlp.recstruct).Child.I", }, + // RawValue + {input: "01", ptr: new(RawValue), value: RawValue(unhex("01"))}, + {input: "82FFFF", ptr: new(RawValue), value: RawValue(unhex("82FFFF"))}, + {input: "C20102", ptr: new([]RawValue), value: []RawValue{unhex("01"), unhex("02")}}, + // pointers {input: "00", ptr: new(*[]byte), value: &[]byte{0}}, {input: "80", ptr: new(*uint), value: uintp(0)}, |