Skip to content

Commit efd7da0

Browse files
committed
Merge pull request bnb-chain#1385 from Gustav-Simonsson/update_tests
Update Ethereum JSON test files, skip failing tests
2 parents acd85fe + ff97059 commit efd7da0

20 files changed

Lines changed: 1935 additions & 4520 deletions

‎tests/block_test_util.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ func runBlockTests(bt map[string]*BlockTest, skipTests []string) error {
129129
// if the test should be skipped, return
130130
if skipTest[name] {
131131
glog.Infoln("Skipping block test", name)
132-
return nil
132+
continue
133133
}
134134

135135
// test the block
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"listsoflists2": {
3+
"in": [ [], [[]], [ [], [[]] ] ],
4+
"out": "c7c0c1c0c3c0c1c0"
5+
},
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"int32Overflow": {
3+
"in": "INVALID",
4+
"out": "bf0f000000000000021111"
5+
},
6+
7+
"int32Overflow2": {
8+
"in": "INVALID",
9+
"out": "ff0f000000000000021111"
10+
},
11+
}

‎tests/files/BlockchainTests/badBlockChain.json‎

Lines changed: 0 additions & 2199 deletions
This file was deleted.

‎tests/files/BlockchainTests/basicBlockChain.json‎

Lines changed: 0 additions & 894 deletions
This file was deleted.
File renamed without changes.

tests/files/BlockTests/bcForkBlockTest.json renamed to tests/files/BlockchainTests/bcForkBlockTest.json

Lines changed: 65 additions & 64 deletions
Large diffs are not rendered by default.
File renamed without changes.

tests/files/BlockTests/bcInvalidHeaderTest.json renamed to tests/files/BlockchainTests/bcInvalidHeaderTest.json

Lines changed: 167 additions & 108 deletions
Large diffs are not rendered by default.

tests/files/BlockTests/bcInvalidRLPTest.json renamed to tests/files/BlockchainTests/bcInvalidRLPTest.json

Lines changed: 1215 additions & 1224 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)