From 03c39d4fc01d54abc3691c6c1c781d3be1ca4bb5 Mon Sep 17 00:00:00 2001 From: Jeffrey Wilcke Date: Wed, 29 Jul 2015 15:01:42 +0200 Subject: tests: updated --- tests/files/RLPTests/RandomRLPTests/example.json | 2 +- tests/files/RLPTests/invalidRLPTest.json | 35 ++++++++++++++++++++++++ tests/files/RLPTests/rlptest.json | 14 +++++++++- 3 files changed, 49 insertions(+), 2 deletions(-) mode change 100644 => 100755 tests/files/RLPTests/RandomRLPTests/example.json mode change 100644 => 100755 tests/files/RLPTests/invalidRLPTest.json mode change 100644 => 100755 tests/files/RLPTests/rlptest.json (limited to 'tests/files/RLPTests') diff --git a/tests/files/RLPTests/RandomRLPTests/example.json b/tests/files/RLPTests/RandomRLPTests/example.json old mode 100644 new mode 100755 index 6dabee6b0..e395204d0 --- 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 old mode 100644 new mode 100755 index 508c95835..bed8b30b2 --- 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 old mode 100644 new mode 100755 index 19adbb8e2..f59590567 --- 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" -- cgit v1.2.3