diff options
author | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-12-17 20:00:05 +0800 |
---|---|---|
committer | Jeffrey Wilcke <obscuren@users.noreply.github.com> | 2014-12-17 20:00:05 +0800 |
commit | 8da07e91e40c1d1bb43763b7e959ae92e5770af2 (patch) | |
tree | 0d2631ec0b9324f08fcd2e82cec797fab75e9d4d /ethutil/rlp_test.go | |
parent | ef4135eabe5cb25f8972371c5681e1611ce0cde9 (diff) | |
parent | b1c58b76a9588a90db5a773a997bb70265c378d3 (diff) | |
download | dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar.gz dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar.bz2 dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar.lz dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar.xz dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.tar.zst dexon-8da07e91e40c1d1bb43763b7e959ae92e5770af2.zip |
Merge pull request #213 from ethereum/develop
moved err check
Diffstat (limited to 'ethutil/rlp_test.go')
-rw-r--r-- | ethutil/rlp_test.go | 10 |
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) |