aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/decode_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-09-09 09:34:15 +0800
committerFelix Lange <fjl@twurst.com>2015-09-11 01:41:51 +0800
commit24bb68e7cf546153436f1d38a7227fdf75d73343 (patch)
treefa85e497a639af7aa8ad1cc83dc09fe104fbd7df /rlp/decode_test.go
parentbc17dba8fba0f3007398f231f07916a95ed963ac (diff)
downloadgo-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.gz
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.bz2
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.lz
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.xz
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.tar.zst
go-tangerine-24bb68e7cf546153436f1d38a7227fdf75d73343.zip
rlp: add RawValue
Diffstat (limited to 'rlp/decode_test.go')
-rw-r--r--rlp/decode_test.go5
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)},