forked from cerc-io/plugeth
Added Douglas and Einstein cases
This commit is contained in:
parent
123282e045
commit
e7d9bcd36b
@ -33,6 +33,8 @@ func TestWindonziePath(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestCommon(t *testing.T) {
|
func TestCommon(t *testing.T) {
|
||||||
|
douglas := CurrencyToString(BigPow(10, 43))
|
||||||
|
einstein := CurrencyToString(BigPow(10, 22))
|
||||||
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))
|
||||||
@ -41,6 +43,14 @@ func TestCommon(t *testing.T) {
|
|||||||
ada := CurrencyToString(BigPow(10, 4))
|
ada := CurrencyToString(BigPow(10, 4))
|
||||||
wei := CurrencyToString(big.NewInt(10))
|
wei := CurrencyToString(big.NewInt(10))
|
||||||
|
|
||||||
|
if douglas != "10 Douglas" {
|
||||||
|
t.Error("Got", douglas)
|
||||||
|
}
|
||||||
|
|
||||||
|
if einstein != "10 Einstein" {
|
||||||
|
t.Error("Got", einstein)
|
||||||
|
}
|
||||||
|
|
||||||
if ether != "10 Ether" {
|
if ether != "10 Ether" {
|
||||||
t.Error("Got", ether)
|
t.Error("Got", ether)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user