aboutsummaryrefslogblamecommitdiffstats
path: root/ethutil/common_test.go
blob: 3a6a37ff5764b940fbf7be0092a4a945a96d36d1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                     
package ethutil

import (
    "fmt"
    "math/big"
    "testing"
)

func TestCommon(t *testing.T) {
    fmt.Println(CurrencyToString(BigPow(10, 19)))
    fmt.Println(CurrencyToString(BigPow(10, 16)))
    fmt.Println(CurrencyToString(BigPow(10, 13)))
    fmt.Println(CurrencyToString(BigPow(10, 10)))
    fmt.Println(CurrencyToString(BigPow(10, 7)))
    fmt.Println(CurrencyToString(BigPow(10, 4)))
    fmt.Println(CurrencyToString(big.NewInt(10)))
}