aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/rlp_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-12-18 07:12:51 +0800
committerobscuren <geffobscura@gmail.com>2014-12-18 07:12:51 +0800
commite6fdf0c9f7564b8b08cf428e03af66fc423adcc1 (patch)
tree14fafd42083a9a5d57005b614740294ae0525bef /ethutil/rlp_test.go
parent52b54631a47dfa46742635be178f2f8d33dd9f41 (diff)
parent4dbdcaecb117d7e1fcaf0869f5d4602312552991 (diff)
downloaddexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar.gz
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar.bz2
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar.lz
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar.xz
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.tar.zst
dexon-e6fdf0c9f7564b8b08cf428e03af66fc423adcc1.zip
Merge branch 'develop' into poc8
Diffstat (limited to 'ethutil/rlp_test.go')
-rw-r--r--ethutil/rlp_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/ethutil/rlp_test.go b/ethutil/rlp_test.go
index 90057ab42..ff98d3269 100644
--- a/ethutil/rlp_test.go
+++ b/ethutil/rlp_test.go
@@ -7,6 +7,16 @@ import (
"testing"
)
+func TestNonInterfaceSlice(t *testing.T) {
+ vala := []string{"value1", "value2", "value3"}
+ valb := []interface{}{"value1", "value2", "value3"}
+ resa := Encode(vala)
+ resb := Encode(valb)
+ if !bytes.Equal(resa, resb) {
+ t.Errorf("expected []string & []interface{} to be equal")
+ }
+}
+
func TestRlpValueEncoding(t *testing.T) {
val := EmptyValue()
val.AppendList().Append(1).Append(2).Append(3)