Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
Added first three tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuterin committed Dec 31, 2013
0 parents commit 2c81698
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 0 deletions.
26 changes: 26 additions & 0 deletions hexencodetest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[
[
[ 1, 2, 3, 4, 5 ],
"112345"
],
[
[ 0, 1, 2, 3, 4, 5 ],
"00012345"
],
[
[ 6, 4, 6, 15, 6, 7, 6, 5, 16 ],
"20646f6765"
],
[
[ 7, 6, 5, 16 ],
"3765"
],
[
[ 16 ],
"20"
],
[
[ 0, 16 ],
"30"
]
]
50 changes: 50 additions & 0 deletions rlptest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
[
[
"cat",
"43636174"
],
[
"dog",
"43646f67"
],
[
[ "cat", "dog" ],
"824363617443646f67"
],
[
1,
"01"
],
[
10,
"0a"
],
[
100,
"1864"
],
[
1000,
"1903e8"
],
[
115792089237316195423570985008687907853269984665640564039457584007913129639935,
"37ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
],
[
115792089237316195423570985008687907853269984665640564039457584007913129639936,
"38010000000000000000000000000000000000000000000000000000000000000000"
],
[
[ 1, 2, [] ],
"83010280"
],
[
[ [ [], [] ], [] ],
"8282808080"
],
[
[ "zw", [ 4 ], "wz" ],
"83427a77810442777a"
]
]
9 changes: 9 additions & 0 deletions trietest.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"do": "verb",
"horse": "stallion",
"doge": "coin",
"dog": "puppy"
},
"6529010d2a2f633bfe03e7a3a3503e5a5bccd1ca49989ac0fb195fd022c6cc93"
]

0 comments on commit 2c81698

Please sign in to comment.