aboutsummaryrefslogtreecommitdiffstats
path: root/rlp/encode_test.go
diff options
context:
space:
mode:
authorAlexandre Van de Sande <alex.vandesande@ethdev.com>2015-02-16 21:43:30 +0800
committerAlexandre Van de Sande <alex.vandesande@ethdev.com>2015-02-16 21:43:30 +0800
commit3068e2688d88912ec33f3d80fd0fe26c4e897dcd (patch)
treeee32ccd17faf650f3e933e9a2d8b4ab52f0d7746 /rlp/encode_test.go
parent1878630b591b039fadb6f88e15340d04f4af3ed1 (diff)
parent68f6ddc5aaa7ff29d09c1519ccd38d9cf16c0f75 (diff)
downloadgo-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar.gz
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar.bz2
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar.lz
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar.xz
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.tar.zst
go-tangerine-3068e2688d88912ec33f3d80fd0fe26c4e897dcd.zip
merge conflicts
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"},
{