Skip to content

Commit

Permalink
RLP tests and Trie updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Feb 28, 2014
1 parent 33f80fe commit 15dd8fd
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 20 deletions.
6 changes: 3 additions & 3 deletions rlptest.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"in": [ [ [], [] ], [] ],
"out": "c4c2c0c0c0"
},
"xbigint": {
"in": 115792089237316195423570985008687907853269984665640564039457584007913129639936,
"out": "3821010000000000000000000000000000000000000000000000000000000000000000"
"bigint": {
"in": "#115792089237316195423570985008687907853269984665640564039457584007913129639936",
"out": "a1010000000000000000000000000000000000000000000000000000000000000000"
}
}
62 changes: 45 additions & 17 deletions trietest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
{
"doprefix": {
"inputs": {
"doe": "reindeer",
"dog": "puppy",
"dogglesworth": "cat"
},
"expectation": "d85f9267d7ed5767fb1b48defa8eb20a1c007a87a07588135a74b40b55de2e67"
},
"multiprefix": {
"inputs":{
"do": "verb",
"horse": "stallion",
"doge": "coin",
"dog": "puppy"
},
"expectation": "cf7d318935b52db6e23d8c1f5e6b7e62f3606d4ed13783f4fdbd6e67a2085d04"
}
"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": {
"in": {
"doe": "reindeer",
"dog": "puppy",
"dogglesworth": "cat"
},
"root": "8aad789dff2f538bca5d8ea56e8abe10f4c7ba3a5dea95fea4cd6e7c3a1168d3"
},
"multiprefix": {
"in": {
"do": "verb",
"horse": "stallion",
"doge": "coin",
"dog": "puppy"
},
"root": "5991bb8c6514148a29db676a14ac506cd2cd5775ace63c30a4fe457715e9ac84"
}
}

0 comments on commit 15dd8fd

Please sign in to comment.