aboutsummaryrefslogtreecommitdiffstats
path: root/RLPTests
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-07-18 22:50:26 +0800
committerFelix Lange <fjl@twurst.com>2015-07-18 22:50:26 +0800
commit637236cbcd3661a7e16746152a1899ef611fd740 (patch)
tree0796beed5cfe304b520845047acdea81c605f43d /RLPTests
parent75b52ae0d97e7f2e9afc8f7a178a4448407d5f3c (diff)
downloadtangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar.gz
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar.bz2
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar.lz
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar.xz
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.tar.zst
tangerine-tests-637236cbcd3661a7e16746152a1899ef611fd740.zip
RLPTests: add more byte array tests
Diffstat (limited to 'RLPTests')
-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"