mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-06 03:15:03 +00:00
Remove fmt dependency
This commit is contained in:
parent
b100546c9d
commit
4e15adac6d
1 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue