From e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f Mon Sep 17 00:00:00 2001 From: Taylor Gerring Date: Tue, 4 Nov 2014 16:42:28 +0100 Subject: [PATCH] Added Douglas and Einstein cases --- ethutil/common_test.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ethutil/common_test.go b/ethutil/common_test.go index 819ead7cb..791ff0a25 100644 --- a/ethutil/common_test.go +++ b/ethutil/common_test.go @@ -33,6 +33,8 @@ func TestWindonziePath(t *testing.T) { } func TestCommon(t *testing.T) { + douglas := CurrencyToString(BigPow(10, 43)) + einstein := CurrencyToString(BigPow(10, 22)) ether := CurrencyToString(BigPow(10, 19)) finney := CurrencyToString(BigPow(10, 16)) szabo := CurrencyToString(BigPow(10, 13)) @@ -41,6 +43,14 @@ func TestCommon(t *testing.T) { ada := CurrencyToString(BigPow(10, 4)) 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" { t.Error("Got", ether) }