aboutsummaryrefslogtreecommitdiffstats
path: root/ethutil/rlp_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-24 20:20:34 +0800
committerobscuren <geffobscura@gmail.com>2014-03-24 20:20:34 +0800
commite0b6091d7ef709902f534c1a4b57151f0171e03c (patch)
tree290fa26d9da264a5e365816a80c42f325adb51ef /ethutil/rlp_test.go
parent6a86c517c4f4b372cad0ae1d92e926a482eac5ba (diff)
downloaddexon-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.go6
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"})