RLP tests and Trie updates.

pull/426/head
Gav Wood 11 years ago
parent 33f80fef21
commit 15dd8fd794
  1. 6
      rlptest.json
  2. 62
      trietest.json

@ -39,8 +39,8 @@
"in": [ [ [], [] ], [] ], "in": [ [ [], [] ], [] ],
"out": "c4c2c0c0c0" "out": "c4c2c0c0c0"
}, },
"xbigint": { "bigint": {
"in": 115792089237316195423570985008687907853269984665640564039457584007913129639936, "in": "#115792089237316195423570985008687907853269984665640564039457584007913129639936",
"out": "3821010000000000000000000000000000000000000000000000000000000000000000" "out": "a1010000000000000000000000000000000000000000000000000000000000000000"
} }
} }

@ -1,19 +1,47 @@
{ {
"doprefix": { "basic": {
"inputs": { "in": {
"doe": "reindeer", "a": "A",
"dog": "puppy", "b": "B"
"dogglesworth": "cat" },
}, "root": "300eab197a9d9e437aaeb9b0d7bd77d57e8d4e3eeca0b1e6a3fe28a84e2cd70c"
"expectation": "d85f9267d7ed5767fb1b48defa8eb20a1c007a87a07588135a74b40b55de2e67" },
}, "basic1": {
"multiprefix": { "in": {
"inputs":{ "test": "test"
"do": "verb", },
"horse": "stallion", "root": "85d106d4edff3b7a4889e91251d0a87d7c17a1dda648ebdba8c6060825be23b8"
"doge": "coin", },
"dog": "puppy" "basic2": {
}, "in": {
"expectation": "cf7d318935b52db6e23d8c1f5e6b7e62f3606d4ed13783f4fdbd6e67a2085d04" "test": "test",
} "te": "testy"
},
"root": "8452568af70d8d140f58d941338542f645fcca50094b20f3c3d8c3df49337928"
},
"beprefix": {
"in": {
"be": "e",
"bed": "d",
"dog": "puppy"
},
"root": "3f67c7a47520f79faa29255d2d3c084a7a6df0453116ed7232ff10277a8be68b"
},
"doprefix": {
"in": {
"doe": "reindeer",
"dog": "puppy",
"dogglesworth": "cat"
},
"root": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
},
"multiprefix": {
"in": {
"do": "verb",
"horse": "stallion",
"doge": "coin",
"dog": "puppy"
},
"root": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
}
} }

Loading…
Cancel
Save