diff options
author | Gav Wood <i@gavwood.com> | 2014-02-28 20:54:47 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-02-28 20:54:47 +0800 |
commit | 15dd8fd794a0dc305ef7696d0c2a68e032bc9759 (patch) | |
tree | 3b8b5540e7fd1052b4559980624362941022d000 | |
parent | 33f80fef211c2d51162c1856e50448be3d90c214 (diff) | |
download | go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar.gz go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar.bz2 go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar.lz go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar.xz go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.tar.zst go-tangerine-15dd8fd794a0dc305ef7696d0c2a68e032bc9759.zip |
RLP tests and Trie updates.
-rw-r--r-- | rlptest.json | 6 | ||||
-rw-r--r-- | trietest.json | 62 |
2 files changed, 48 insertions, 20 deletions
diff --git a/rlptest.json b/rlptest.json index a6409558c..e96447199 100644 --- a/rlptest.json +++ b/rlptest.json @@ -39,8 +39,8 @@ "in": [ [ [], [] ], [] ], "out": "c4c2c0c0c0" }, - "xbigint": { - "in": 115792089237316195423570985008687907853269984665640564039457584007913129639936, - "out": "3821010000000000000000000000000000000000000000000000000000000000000000" + "bigint": { + "in": "#115792089237316195423570985008687907853269984665640564039457584007913129639936", + "out": "a1010000000000000000000000000000000000000000000000000000000000000000" } } diff --git a/trietest.json b/trietest.json index e741a2012..4b2327e88 100644 --- a/trietest.json +++ b/trietest.json @@ -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" + } } |