RLP tests and Trie updates.

This commit is contained in:
Gav Wood 2014-02-28 12:54:47 +00:00
parent 33f80fef21
commit 15dd8fd794
2 changed files with 48 additions and 20 deletions

View File

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

View File

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