aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/RLPTests
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-07-29 21:01:42 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-07-29 21:01:42 +0800
commit03c39d4fc01d54abc3691c6c1c781d3be1ca4bb5 (patch)
tree8eba8f2ad9867121aee319fba2b98ea1e2d1d37d /tests/files/RLPTests
parenta281df783d32270c188d05872b8008eb0b74d042 (diff)
downloaddexon-03c39d4fc01d54abc3691c6c1c781d3be1ca4bb5.tar.gz
dexon-03c39d4fc01d54abc3691c6c1c781d3be1ca4bb5.tar.zst
dexon-03c39d4fc01d54abc3691c6c1c781d3be1ca4bb5.zip
tests: updated
Diffstat (limited to 'tests/files/RLPTests')
-rwxr-xr-x[-rw-r--r--]tests/files/RLPTests/RandomRLPTests/example.json2
-rwxr-xr-x[-rw-r--r--]tests/files/RLPTests/invalidRLPTest.json35
-rwxr-xr-x[-rw-r--r--]tests/files/RLPTests/rlptest.json14
3 files changed, 49 insertions, 2 deletions
diff --git a/tests/files/RLPTests/RandomRLPTests/example.json b/tests/files/RLPTests/RandomRLPTests/example.json
index 6dabee6b0..e395204d0 100644..100755
--- a/tests/files/RLPTests/RandomRLPTests/example.json
+++ b/tests/files/RLPTests/RandomRLPTests/example.json
@@ -2,5 +2,5 @@
"listsoflists2": {
"in": "VALID",
"out": "c7c0c1c0c3c0c1c0"
- },
+ }
}
diff --git a/tests/files/RLPTests/invalidRLPTest.json b/tests/files/RLPTests/invalidRLPTest.json
index 508c95835..bed8b30b2 100644..100755
--- a/tests/files/RLPTests/invalidRLPTest.json
+++ b/tests/files/RLPTests/invalidRLPTest.json
@@ -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"
}
}
diff --git a/tests/files/RLPTests/rlptest.json b/tests/files/RLPTests/rlptest.json
index 19adbb8e2..f59590567 100644..100755
--- a/tests/files/RLPTests/rlptest.json
+++ b/tests/files/RLPTests/rlptest.json
@@ -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"