Added first three tests

pull/426/head
Vitalik Buterin 11 years ago
commit 2c81698f31
  1. 26
      hexencodetest.txt
  2. 50
      rlptest.txt
  3. 9
      trietest.txt

@ -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"
]
]

@ -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"
]
]

@ -0,0 +1,9 @@
[
{
"do": "verb",
"horse": "stallion",
"doge": "coin",
"dog": "puppy"
},
"6529010d2a2f633bfe03e7a3a3503e5a5bccd1ca49989ac0fb195fd022c6cc93"
]
Loading…
Cancel
Save