|
|
@ -36,9 +36,9 @@ func TestCommon(t *testing.T) { |
|
|
|
ether := CurrencyToString(BigPow(10, 19)) |
|
|
|
ether := CurrencyToString(BigPow(10, 19)) |
|
|
|
finney := CurrencyToString(BigPow(10, 16)) |
|
|
|
finney := CurrencyToString(BigPow(10, 16)) |
|
|
|
szabo := CurrencyToString(BigPow(10, 13)) |
|
|
|
szabo := CurrencyToString(BigPow(10, 13)) |
|
|
|
vito := CurrencyToString(BigPow(10, 10)) |
|
|
|
shannon := CurrencyToString(BigPow(10, 10)) |
|
|
|
turing := CurrencyToString(BigPow(10, 7)) |
|
|
|
babbage := CurrencyToString(BigPow(10, 7)) |
|
|
|
eins := CurrencyToString(BigPow(10, 4)) |
|
|
|
ada := CurrencyToString(BigPow(10, 4)) |
|
|
|
wei := CurrencyToString(big.NewInt(10)) |
|
|
|
wei := CurrencyToString(big.NewInt(10)) |
|
|
|
|
|
|
|
|
|
|
|
if ether != "10 Ether" { |
|
|
|
if ether != "10 Ether" { |
|
|
@ -53,16 +53,16 @@ func TestCommon(t *testing.T) { |
|
|
|
t.Error("Got", szabo) |
|
|
|
t.Error("Got", szabo) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if vito != "10 Shannon" { |
|
|
|
if shannon != "10 Shannon" { |
|
|
|
t.Error("Got", vito) |
|
|
|
t.Error("Got", shannon) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if turing != "10 Babbage" { |
|
|
|
if babbage != "10 Babbage" { |
|
|
|
t.Error("Got", turing) |
|
|
|
t.Error("Got", babbage) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if eins != "10 Ada" { |
|
|
|
if ada != "10 Ada" { |
|
|
|
t.Error("Got", eins) |
|
|
|
t.Error("Got", ada) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if wei != "10 Wei" { |
|
|
|
if wei != "10 Wei" { |
|
|
|