commit 2c81698f31e7e579335a2ab8706f96397a68f018 Author: Vitalik Buterin Date: Mon Dec 30 21:09:40 2013 -0500 Added first three tests diff --git a/hexencodetest.txt b/hexencodetest.txt new file mode 100644 index 000000000..aafe29974 --- /dev/null +++ b/hexencodetest.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" + ] +] diff --git a/rlptest.txt b/rlptest.txt new file mode 100644 index 000000000..6767c2370 --- /dev/null +++ b/rlptest.txt @@ -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" + ] +] diff --git a/trietest.txt b/trietest.txt new file mode 100644 index 000000000..b816ba10e --- /dev/null +++ b/trietest.txt @@ -0,0 +1,9 @@ +[ + { + "do": "verb", + "horse": "stallion", + "doge": "coin", + "dog": "puppy" + }, + "6529010d2a2f633bfe03e7a3a3503e5a5bccd1ca49989ac0fb195fd022c6cc93" +]