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
1650b59c
Commit
1650b59c
authored
Mar 03, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delet => Delete
parent
bf5365b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
gh_test.go
tests/vm/gh_test.go
+15
-8
No files found.
tests/vm/gh_test.go
View file @
1650b59c
...
@@ -64,14 +64,15 @@ type Env struct {
...
@@ -64,14 +64,15 @@ type Env struct {
type
VmTest
struct
{
type
VmTest
struct
{
Callcreates
interface
{}
Callcreates
interface
{}
//Env map[string]string
//Env map[string]string
Env
Env
Env
Env
Exec
map
[
string
]
string
Exec
map
[
string
]
string
Transaction
map
[
string
]
string
Transaction
map
[
string
]
string
Logs
[]
Log
Logs
[]
Log
Gas
string
Gas
string
Out
string
Out
string
Post
map
[
string
]
Account
Post
map
[
string
]
Account
Pre
map
[
string
]
Account
Pre
map
[
string
]
Account
PostStateRoot
string
}
}
func
RunVmTest
(
p
string
,
t
*
testing
.
T
)
{
func
RunVmTest
(
p
string
,
t
*
testing
.
T
)
{
...
@@ -154,6 +155,12 @@ func RunVmTest(p string, t *testing.T) {
...
@@ -154,6 +155,12 @@ func RunVmTest(p string, t *testing.T) {
}
}
}
}
if
!
isVmTest
{
if
!
bytes
.
Equal
(
ethutil
.
Hex2Bytes
(
test
.
PostStateRoot
),
statedb
.
Root
())
{
t
.
Errorf
(
"Post state root error. Expected %s, got %x"
,
test
.
PostStateRoot
,
statedb
.
Root
())
}
}
if
len
(
test
.
Logs
)
>
0
{
if
len
(
test
.
Logs
)
>
0
{
if
len
(
test
.
Logs
)
!=
len
(
logs
)
{
if
len
(
test
.
Logs
)
!=
len
(
logs
)
{
t
.
Errorf
(
"log length mismatch. Expected %d, got %d"
,
len
(
test
.
Logs
),
len
(
logs
))
t
.
Errorf
(
"log length mismatch. Expected %d, got %d"
,
len
(
test
.
Logs
),
len
(
logs
))
...
...
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