aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAyrat Badykov <ayratin555@gmail.com>2018-11-27 22:21:32 +0800
committerGitHub <noreply@github.com>2018-11-27 22:21:32 +0800
commit49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d (patch)
tree5bf1c0bf8bdf6135ebcd97b738ea5a5add545351
parentc02a2a17c0288a255572b37dc7ec1fcb838b9dbf (diff)
downloaddexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar.gz
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar.bz2
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar.lz
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar.xz
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.tar.zst
dexon-tests-49ed13d0c4baf8f1b46b2c36fd4814ab42dca54d.zip
add new test case not covered by RLP tests
We discovered that our implementation of RLP encoding decodes some RLP binaries incorrectly after recent PR (https://github.com/mana-ethereum/ex_rlp/pull/17) but it passes all RLP test cases. This PR adds a new test case which is not covered by existing RLP tests
-rw-r--r--RLPTests/rlptest.json23
1 files changed, 22 insertions, 1 deletions
diff --git a/RLPTests/rlptest.json b/RLPTests/rlptest.json
index b75f050f8..1df213040 100644
--- a/RLPTests/rlptest.json
+++ b/RLPTests/rlptest.json
@@ -133,7 +133,28 @@
],
"out": "f90200cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376cf84617364668471776572847a786376"
},
-
+ "listofbinaries": {
+ "in": ["0x299ca6acfd35e3d72d8ba3d1e2b60b5561d5af5218eb5bc182045769eb4226910a301acae3b369fffc4a4899d6b02531e89fd4fe36a2cf0d93607ba470b50f7800",
+ "0xfda1cff674c90c9a197539fe3dfb53086ace64f83ed7c6eabec741f7f381cc803e52ab2cd55d5569bce4347107a310dfd5f88a010cd2ffd1005ca406f1842877",
+ "0x7e968bba13b6c50e2c4cd7f241cc0d64d1ac25c7f5952df231ac6a2bda8ee5d6", "0x04",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00", "0x00",
+ "0x00", "0x00", "0x00"],
+ "out": "0xf8a7b841299ca6acfd35e3d72d8ba3d1e2b60b5561d5af5218eb5bc182045769eb4226910a301acae3b369fffc4a4899d6b02531e89fd4fe36a2cf0d93607ba470b50f7800b840fda1cff674c90c9a197539fe3dfb53086ace64f83ed7c6eabec741f7f381cc803e52ab2cd55d5569bce4347107a310dfd5f88a010cd2ffd1005ca406f1842877a07e968bba13b6c50e2c4cd7f241cc0d64d1ac25c7f5952df231ac6a2bda8ee5d604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
+ },
"listsoflists": {
"in": [ [ [], [] ], [] ],
"out": "c4c2c0c0c0"