diff options
author | Maran <maran.hidskes@gmail.com> | 2014-03-31 18:54:37 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-03-31 18:54:37 +0800 |
commit | 5f49a659c36dbfb8c330ddc3d4565c19a9a936b5 (patch) | |
tree | 61e4c356238474e6c7e9965755e4a37a95a19f18 /ethutil/rlp_test.go | |
parent | 6253d109389d49e47772597de24cd11874b91338 (diff) | |
download | dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar.gz dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar.bz2 dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar.lz dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar.xz dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.tar.zst dexon-5f49a659c36dbfb8c330ddc3d4565c19a9a936b5.zip |
More blockchain testing
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 2a58bfc0f..ce2535663 100644 --- a/ethutil/rlp_test.go +++ b/ethutil/rlp_test.go @@ -2,6 +2,7 @@ package ethutil import ( "bytes" + "fmt" "math/big" "reflect" "testing" @@ -55,6 +56,15 @@ func TestValue(t *testing.T) { } } +func TestEncodeDecodeMaran(t *testing.T) { + b := NewValue([]interface{}{"dog", 15, []interface{}{"cat", "cat", []interface{}{}}, 1024, "tachikoma"}) + a := b.Encode() + fmt.Println("voor maran", a) + f, i := Decode(a, 0) + fmt.Println("voor maran 2", f) + fmt.Println(i) +} + func TestEncode(t *testing.T) { strRes := "\x83dog" bytes := Encode("dog") |