Skip to content

Commit

Permalink
Moved over to new format, but RLP tests still need updating.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork committed Feb 21, 2014
1 parent 660cd26 commit a0ec843
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 92 deletions.
68 changes: 34 additions & 34 deletions hexencodetest.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
[
[
[ 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"
],
[
[ 15, 1, 12, 11, 8, 16 ],
"3f1cb8"
],
[
[ 0, 15, 1, 12, 11, 8, 16 ],
"200f1cb8"
]
]
{
"nz,odd": {
"seq": [ 1, 2, 3, 4, 5 ],
"return": "112345"
},
"z,even": {
"seq": [ 0, 1, 2, 3, 4, 5 ],
"return": "00012345"
},
"long": {
"seq": [ 6, 4, 6, 15, 6, 7, 6, 5, 16 ],
"return": "20646f6765"
},
"short": {
"seq": [ 7, 6, 5, 16 ],
"return": "3765"
},
"nz,one": {
"seq": [ 16 ],
"return": "20"
},
"z,two": {
"seq": [ 0, 16 ],
"return": "30"
},
"nz,even": {
"seq": [ 15, 1, 12, 11, 8, 16 ],
"return": "3f1cb8"
},
"z,odd": {
"seq": [ 0, 15, 1, 12, 11, 8, 16 ],
"return": "200f1cb8"
}
}
100 changes: 46 additions & 54 deletions rlptest.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,46 @@
[
[
"cat",
"43636174"
],
[
"dog",
"43646f67"
],
[
[ "cat", "dog" ],
"824363617443646f67"
],
[
[ "dog", "god", "cat" ],
"8343646f6743676f6443636174"
],
[
1,
"01"
],
[
10,
"0a"
],
[
100,
"1864"
],
[
1000,
"1903e8"
],
[
115792089237316195423570985008687907853269984665640564039457584007913129639935,
"37ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
],
[
115792089237316195423570985008687907853269984665640564039457584007913129639936,
"3821010000000000000000000000000000000000000000000000000000000000000000"
],
[
[ 1, 2, [] ],
"83010280"
],
[
[ [ [], [] ], [] ],
"8282808080"
],
[
[ "zw", [ 4 ], "wz" ],
"83427a77810442777a"
]
]
{
"emptystring": {
"in": "",
"out": "00"
},
"shortstring": {
"in": "dog",
"out": "43646f67"
},
"longstring": {
"in": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
"out": "TODO"
},
"zero": {
"in": 0,
"out": "80"
},
"smallint": {
"in": 1,
"out": "01"
},
"mediumint": {
"in": 1000,
"out": "8203e8"
},
"bigint": {
"in": 115792089237316195423570985008687907853269984665640564039457584007913129639936,
"out": "3821010000000000000000000000000000000000000000000000000000000000000000"
},
"emptylist": {
"in": [],
"out": "c0"
},
"stringlist": {
"in": [ "dog", "god", "cat" ],
"out": "8343646f6743676f6443636174"
},
"multilist": {
"in": [ "zw", [ 4 ], 1 ],
"out": "TODO"
},
"listsoflists": {
"in": [ [ [], [] ], [] ],
"out": "c2c2c0c0c0"
}
}
8 changes: 4 additions & 4 deletions trietest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[
{
{
"doprefix": {
"inputs": {
"doe": "reindeer",
"dog": "puppy",
"dogglesworth": "cat"
},
"expectation": "d85f9267d7ed5767fb1b48defa8eb20a1c007a87a07588135a74b40b55de2e67"
},
{
"multiprefix": {
"inputs":{
"do": "verb",
"horse": "stallion",
Expand All @@ -16,4 +16,4 @@
},
"expectation": "cf7d318935b52db6e23d8c1f5e6b7e62f3606d4ed13783f4fdbd6e67a2085d04"
}
]
}

0 comments on commit a0ec843

Please sign in to comment.