aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2014-11-04 23:42:28 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2014-11-04 23:42:28 +0800
commite7d9bcd36b5809b649dc7f8e6092d5edaa0d155f (patch)
tree4122440ae4b0d72f186879e29012210fb402f4c6
parent123282e0454179c8728394753501e0de93ac9b96 (diff)
downloadgo-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar.gz
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar.bz2
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar.lz
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar.xz
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.tar.zst
go-tangerine-e7d9bcd36b5809b649dc7f8e6092d5edaa0d155f.zip
Added Douglas and Einstein cases
-rw-r--r--ethutil/common_test.go10
1 files changed, 10 insertions, 0 deletions
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)
}