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
79eb40fc
Commit
79eb40fc
authored
May 07, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add bcTotalDifficultyTest and unskip now working tx tests
parent
2b716aec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
block_test.go
tests/block_test.go
+4
-0
transaction_test.go
tests/transaction_test.go
+1
-5
transaction_test_util.go
tests/transaction_test_util.go
+1
-1
No files found.
tests/block_test.go
View file @
79eb40fc
...
...
@@ -44,6 +44,10 @@ func TestBcForkBlockTests(t *testing.T) {
runBlockTestsInFile
(
"files/BlockTests/bcForkBlockTest.json"
,
[]
string
{},
t
)
}
func
TestBcTotalDifficulty
(
t
*
testing
.
T
)
{
runBlockTestsInFile
(
"files/BlockTests/bcTotalDifficultyTest.json"
,
[]
string
{},
t
)
}
func
runBlockTestsInFile
(
filepath
string
,
snafus
[]
string
,
t
*
testing
.
T
)
{
bt
,
err
:=
LoadBlockTests
(
filepath
)
if
err
!=
nil
{
...
...
tests/transaction_test.go
View file @
79eb40fc
...
...
@@ -9,9 +9,7 @@ func TestTransactions(t *testing.T) {
// TODO: all these tests should work! remove them from the array when they work
snafus
:=
[]
string
{
"TransactionWithHihghNonce"
,
// fails due to testing upper bound of 256 bit nonce
"TransactionWithSvalueHigh"
,
// fails due to C++ wrong ECDSA r,s ranges. see https://github.com/ethereum/yellowpaper/pull/112
"TransactionWithSvalue0"
,
// Invalid, 0 < s according to YP eq 205. probably typo/copy-paste error
"TransactionWithHihghNonce256"
,
// fails due to testing upper bound of 256 bit nonce
}
for
_
,
name
:=
range
snafus
{
...
...
@@ -36,9 +34,7 @@ func TestWrongRLPTransactions(t *testing.T) {
}
}
//Not working until it's fields are in HEX
func
Test10MBtx
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of HEX encoding fix in this file."
)
notWorking
:=
make
(
map
[
string
]
bool
,
100
)
var
err
error
err
=
RunTransactionTests
(
"./files/TransactionTests/tt10mbDataField.json"
,
...
...
tests/transaction_test_util.go
View file @
79eb40fc
...
...
@@ -58,7 +58,7 @@ func runTest(txTest TransactionTest) (err error) {
return
nil
}
else
{
// RLP decoding failed but is expected to succeed (test FAIL)
return
errors
.
New
(
"RLP decoding failed when expected to succeed"
)
return
fmt
.
Errorf
(
"RLP decoding failed when expected to succeed: "
,
err
)
}
}
...
...
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