aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-06 04:59:22 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-06 04:59:22 +0800
commit4e15adac6d46acb5b8173050618a1ffac525e528 (patch)
tree23184d46d47019b2edc41866125070c0932ccddc
parentb100546c9dd82a085d4b984275082a61fe3f3fe2 (diff)
downloadgo-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar.gz
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar.bz2
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar.lz
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar.xz
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.tar.zst
go-tangerine-4e15adac6d46acb5b8173050618a1ffac525e528.zip
Remove fmt dependency
-rw-r--r--ethutil/value_test.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/ethutil/value_test.go b/ethutil/value_test.go
index 5452a0790..54c8d9fd6 100644
--- a/ethutil/value_test.go
+++ b/ethutil/value_test.go
@@ -2,7 +2,6 @@ package ethutil
import (
"bytes"
- "fmt"
"math/big"
"testing"
)
@@ -81,6 +80,10 @@ func TestMath(t *testing.T) {
}
func TestString(t *testing.T) {
- a := NewValue("10")
- fmt.Println("VALUE WITH STRING:", a.Int())
+ data := "10"
+ exp := int64(10)
+ res := NewValue(data).Int()
+ if res != exp {
+ t.Errorf("Exprected %d Got res", exp, res)
+ }
}