tests: updated

This commit is contained in:
Jeffrey Wilcke
2015-07-29 15:01:42 +02:00
parent a281df783d
commit 03c39d4fc0
751 changed files with 9210 additions and 9100 deletions

2
tests/files/RLPTests/RandomRLPTests/example.json Normal file → Executable file
View File

@ -2,5 +2,5 @@
"listsoflists2": {
"in": "VALID",
"out": "c7c0c1c0c3c0c1c0"
},
}
}

35
tests/files/RLPTests/invalidRLPTest.json Normal file → Executable file
View File

@ -7,5 +7,40 @@
"int32Overflow2": {
"in": "INVALID",
"out": "ff0f000000000000021111"
},
"wrongSizeList": {
"in": "INVALID",
"out": "f80180"
},
"wrongSizeList2": {
"in": "INVALID",
"out": "f80100"
},
"incorrectLengthInArray": {
"in": "INVALID",
"out": "b9002100dc2b275d0f74e8a53e6f4ec61b27f24278820be3f82ea2110e582081b0565df0"
},
"randomRLP": {
"in": "INVALID",
"out": "f861f83eb9002100dc2b275d0f74e8a53e6f4ec61b27f24278820be3f82ea2110e582081b0565df027b90015002d5ef8325ae4d034df55d4b58d0dfba64d61ddd17be00000b9001a00dae30907045a2f66fa36f2bb8aa9029cbb0b8a7b3b5c435ab331"
},
"bytesShouldBeSingleByte00": {
"in": "INVALID",
"out": "8100"
},
"bytesShouldBeSingleByte01": {
"in": "INVALID",
"out": "8100"
},
"bytesShouldBeSingleByte7F": {
"in": "INVALID",
"out": "817F"
}
}

14
tests/files/RLPTests/rlptest.json Normal file → Executable file
View File

@ -3,10 +3,22 @@
"in": "",
"out": "80"
},
"bytestring00": {
"in": "\u0000",
"out": "00"
},
"bytestring01": {
"in": "\u0001",
"out": "01"
},
"bytestring7F": {
"in": "\u007F",
"out": "7F"
},
"shortstring": {
"in": "dog",
"out": "83646f67"
},
},
"shortstring2": {
"in": "Lorem ipsum dolor sit amet, consectetur adipisicing eli",
"out": "b74c6f72656d20697073756d20646f6c6f722073697420616d65742c20636f6e7365637465747572206164697069736963696e6720656c69"