aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-06-27 09:45:50 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-06-30 00:51:47 +0800
commita0566c10585cd19b12b40127597e310f4b7bfa67 (patch)
tree02c1a1befcbe6b5c1696901fa09201c6bc19fcf9 /rlp/encode_test.go
parent3d0c6a8345b28b33eb0dfc4a53b967461977706a (diff)
downloadgo-tangerine-a0566c10585cd19b12b40127597e310f4b7bfa67.tar.gz
go-tangerine-a0566c10585cd19b12b40127597e310f4b7bfa67.tar.zst
go-tangerine-a0566c10585cd19b12b40127597e310f4b7bfa67.zip
rlp: remove Flat
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r--rlp/encode_test.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index 6eb930d6c..7b70a0629 100644
--- a/rlp/encode_test.go
+++ b/rlp/encode_test.go
@@ -189,15 +189,6 @@ var encTests = []encTest{
{val: &recstruct{5, nil}, output: "C205C0"},
{val: &recstruct{5, &recstruct{4, &recstruct{3, nil}}}, output: "C605C404C203C0"},
- // flat
- {val: Flat(uint(1)), error: "rlp.Flat: uint did not encode as list"},
- {val: Flat(simplestruct{A: 3, B: "foo"}), output: "0383666F6F"},
- {
- // value generates more list headers after the Flat
- val: []interface{}{"foo", []uint{1, 2}, Flat([]uint{3, 4}), []uint{5, 6}, "bar"},
- output: "D083666F6FC201020304C2050683626172",
- },
-
// nil
{val: (*uint)(nil), output: "80"},
{val: (*string)(nil), output: "80"},