Commit fe0ee939 authored by coolhill's avatar coolhill

LIB_RLPReader test for list item

parent 60838896
...@@ -85,6 +85,12 @@ ...@@ -85,6 +85,12 @@
"0x7f" "0x7f"
] ]
}, },
"should revert if input is a list item": {
"in": [
"0xc7c0c1c0c3c0c1c0"
],
"revert": "Invalid RLP bytes value."
},
"invalid bytes value, 0xb7 < prefix < 0xbf (should revert)": { "invalid bytes value, 0xb7 < prefix < 0xbf (should revert)": {
"in": [ "in": [
"0xb9" "0xb9"
...@@ -99,6 +105,12 @@ ...@@ -99,6 +105,12 @@
} }
}, },
"readBytes32": { "readBytes32": {
"should revert if input is a list item": {
"in": [
"0xc7c0c1c0c3c0c1c0"
],
"revert": "Invalid RLP bytes32 value."
},
"invalid length > 33 (should revert)": { "invalid length > 33 (should revert)": {
"in": [ "in": [
"0x11110000000000000000000000000000000000000000000000000000000000000000" "0x11110000000000000000000000000000000000000000000000000000000000000000"
...@@ -383,7 +395,7 @@ ...@@ -383,7 +395,7 @@
}, },
"leadingZerosInLongLengthArray1": { "leadingZerosInLongLengthArray1": {
"in": ["0xb90040000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f"], "in": ["0xb90040000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f"],
"revert": "Invalid LP list value." "revert": "Invalid RLP list value."
}, },
"leadingZerosInLongLengthArray2": { "leadingZerosInLongLengthArray2": {
"in": ["0xb800"], "in": ["0xb800"],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment