good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
1650b59c
Commit
1650b59c
authored
10 years ago
by
Jeffrey Wilcke
Browse files
Options
Downloads
Patches
Plain Diff
Delet => Delete
parent
bf5365b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/vm/gh_test.go
+15
-8
15 additions, 8 deletions
tests/vm/gh_test.go
with
15 additions
and
8 deletions
tests/vm/gh_test.go
+
15
−
8
View file @
1650b59c
...
...
@@ -64,14 +64,15 @@ type Env struct {
type
VmTest
struct
{
Callcreates
interface
{}
//Env map[string]string
Env
Env
Exec
map
[
string
]
string
Transaction
map
[
string
]
string
Logs
[]
Log
Gas
string
Out
string
Post
map
[
string
]
Account
Pre
map
[
string
]
Account
Env
Env
Exec
map
[
string
]
string
Transaction
map
[
string
]
string
Logs
[]
Log
Gas
string
Out
string
Post
map
[
string
]
Account
Pre
map
[
string
]
Account
PostStateRoot
string
}
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
)
!=
len
(
logs
)
{
t
.
Errorf
(
"log length mismatch. Expected %d, got %d"
,
len
(
test
.
Logs
),
len
(
logs
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment