aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-02-13 22:35:54 +0800
committerobscuren <geffobscura@gmail.com>2015-02-13 22:35:54 +0800
commit76fa75b39439e6c8c83ebc03fb32aa615227cc44 (patch)
tree9b755296ae96dd5e4ced28d6de4d5abfdeb33915 /rlp/encode_test.go
parent75d164037fb9bbf75def7c5501727fd634ef124f (diff)
parent32a9c0ca809508c1648b8f44f3e09725af7a80d3 (diff)
downloaddexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar.gz
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar.bz2
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar.lz
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar.xz
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.tar.zst
dexon-76fa75b39439e6c8c83ebc03fb32aa615227cc44.zip
wip
Diffstat (limited to 'rlp/encode_test.go')
-rw-r--r--rlp/encode_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/rlp/encode_test.go b/rlp/encode_test.go
index 9b3085658..c283fbd57 100644
--- a/rlp/encode_test.go
+++ b/rlp/encode_test.go
@@ -40,6 +40,8 @@ func (e *encodableReader) Read(b []byte) (int, error) {
panic("called")
}
+type namedByteType byte
+
var (
_ = Encoder(&testEncoder{})
_ = Encoder(byteEncoder(0))
@@ -102,6 +104,10 @@ var encTests = []encTest{
// byte slices, strings
{val: []byte{}, output: "80"},
{val: []byte{1, 2, 3}, output: "83010203"},
+
+ {val: []namedByteType{1, 2, 3}, output: "83010203"},
+ {val: [...]namedByteType{1, 2, 3}, output: "83010203"},
+
{val: "", output: "80"},
{val: "dog", output: "83646F67"},
{