package ethutil import ( "math/big" "testing" ) func TestCommon(t *testing.T) { ether := CurrencyToString(BigPow(10, 19)) finney := CurrencyToString(BigPow(10, 16)) szabo := CurrencyToString(BigPow(10, 13)) vito := CurrencyToString(BigPow(10, 10)) turing := CurrencyToString(BigPow(10, 7)) eins := CurrencyToString(BigPow(10, 4)) wei := CurrencyToString(big.NewInt(10)) if ether != "10 Ether" { t.Error("Got", ether) } if finney != "10 Finney" { t.Error("Got", finney) } if szabo != "10 Szabo" { t.Error("Got", szabo) } if vito != "10 Vito" { t.Error("Got", vito) } if turing != "10 Turing" { t.Error("Got", turing) } if eins != "10 Eins" { t.Error("Got", eins) } if wei != "10 Wei" { t.Error("Got", wei) } } f='https://www.csie.ntu.edu.tw/~b01902062/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
path: root/games/maxr
Commit message (Expand)AuthorAgeFilesLines
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2019-07-271-1/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-12-121-1/+1
* - Remove obsolete OSVERSION conditionamdmi32018-11-021-7/+1
* Bump PORTREVISION for ports depending on the canonical version of GCCgerald2018-07-301-0/+1
* - Update to 0.2.9amdmi32017-12-063-18/+25
* Update WWWamdmi32017-01-241-1/+1
* Convert LICENSE= "GPLxx # or later" to "GPLxx+"amdmi32016-01-131-1/+1
* - Add LICENSEamdmi32015-11-011-4/+5
* Revert r375084bapt2014-12-231-0/+4
* Cleanup plistbapt2014-12-211-4/+0
* Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla intijl2014-12-091-1/+1
* - Add empty directories to plistamdmi32014-11-281-0/+4
* Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1