diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-24 20:20:34 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-24 20:20:34 +0800 |
commit | e0b6091d7ef709902f534c1a4b57151f0171e03c (patch) | |
tree | 290fa26d9da264a5e365816a80c42f325adb51ef /ethutil/rlp_test.go | |
parent | 6a86c517c4f4b372cad0ae1d92e926a482eac5ba (diff) | |
download | dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar.gz dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar.bz2 dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar.lz dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar.xz dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.tar.zst dexon-e0b6091d7ef709902f534c1a4b57151f0171e03c.zip |
Test fixes and removed old code. Added VM gas fees
Diffstat (limited to 'ethutil/rlp_test.go')
-rw-r--r-- | ethutil/rlp_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ethutil/rlp_test.go b/ethutil/rlp_test.go index 2a58bfc0f..dc10db632 100644 --- a/ethutil/rlp_test.go +++ b/ethutil/rlp_test.go @@ -2,6 +2,7 @@ package ethutil import ( "bytes" + "fmt" "math/big" "reflect" "testing" @@ -119,6 +120,11 @@ func TestEncodeDecodeBytes(t *testing.T) { } } +func TestEncodeZero(t *testing.T) { + b := NewValue(0).Encode() + fmt.Println(b) +} + func BenchmarkEncodeDecode(b *testing.B) { for i := 0; i < b.N; i++ { bytes := Encode([]interface{}{"dog", "god", "cat"}) |