aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2015-07-19 02:29:49 +0800
committerwinsvega <winsvega@mail.ru>2015-07-19 02:29:49 +0800
commit9317fef00386b131a4711ce9faf3734fc179ae70 (patch)
tree0796beed5cfe304b520845047acdea81c605f43d
parent75b52ae0d97e7f2e9afc8f7a178a4448407d5f3c (diff)
parent637236cbcd3661a7e16746152a1899ef611fd740 (diff)
downloaddexon-tests-9317fef00386b131a4711ce9faf3734fc179ae70.tar.gz
dexon-tests-9317fef00386b131a4711ce9faf3734fc179ae70.tar.zst
dexon-tests-9317fef00386b131a4711ce9faf3734fc179ae70.zip
Merge pull request #92 from fjl/rlp-more-byte-array-tests
RLPTests: add more byte array tests
-rw-r--r--RLPTests/invalidRLPTest.json15
-rw-r--r--RLPTests/rlptest.json10
2 files changed, 22 insertions, 3 deletions
diff --git a/RLPTests/invalidRLPTest.json b/RLPTests/invalidRLPTest.json
index fcc449b5b..bed8b30b2 100644
--- a/RLPTests/invalidRLPTest.json
+++ b/RLPTests/invalidRLPTest.json
@@ -28,4 +28,19 @@
"in": "INVALID",
"out": "f861f83eb9002100dc2b275d0f74e8a53e6f4ec61b27f24278820be3f82ea2110e582081b0565df027b90015002d5ef8325ae4d034df55d4b58d0dfba64d61ddd17be00000b9001a00dae30907045a2f66fa36f2bb8aa9029cbb0b8a7b3b5c435ab331"
},
+
+ "bytesShouldBeSingleByte00": {
+ "in": "INVALID",
+ "out": "8100"
+ },
+
+ "bytesShouldBeSingleByte01": {
+ "in": "INVALID",
+ "out": "8100"
+ },
+
+ "bytesShouldBeSingleByte7F": {
+ "in": "INVALID",
+ "out": "817F"
+ }
}
diff --git a/RLPTests/rlptest.json b/RLPTests/rlptest.json
index cde3cb3af..f59590567 100644
--- a/RLPTests/rlptest.json
+++ b/RLPTests/rlptest.json
@@ -3,18 +3,22 @@
"in": "",
"out": "80"
},
- "zerobytestring": {
+ "bytestring00": {
"in": "\u0000",
"out": "00"
},
- "onebytestring": {
+ "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"