Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
e7d9bcd3
Commit
e7d9bcd3
authored
Nov 04, 2014
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added Douglas and Einstein cases
parent
123282e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
common_test.go
ethutil/common_test.go
+10
-0
No files found.
ethutil/common_test.go
View file @
e7d9bcd3
...
@@ -33,6 +33,8 @@ func TestWindonziePath(t *testing.T) {
...
@@ -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) {
...
@@ -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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment