Hex encode tests done.

This commit is contained in:
Gav Wood 2014-02-28 11:39:35 +00:00
parent e1f5e12abb
commit 33f80fef21
1 changed files with 60 additions and 32 deletions

View File

@ -1,34 +1,62 @@
{ {
"nz,odd": { "zz,odd,open": {
"seq": [ 1, 2, 3, 4, 5 ], "seq": [ 0, 0, 1, 2, 3, 4, 5 ],
"return": "112345" "term": false,
}, "out": "10012345"
"z,even": { },
"seq": [ 0, 1, 2, 3, 4, 5 ], "z,even,open": {
"return": "00012345" "seq": [ 0, 1, 2, 3, 4, 5 ],
}, "term": false,
"long": { "out": "00012345"
"seq": [ 6, 4, 6, 15, 6, 7, 6, 5, 16 ], },
"return": "20646f6765" "nz,odd,open": {
}, "seq": [ 1, 2, 3, 4, 5 ],
"short": { "term": false,
"seq": [ 7, 6, 5, 16 ], "out": "112345"
"return": "3765" },
}, "zz,even,open": {
"nz,one": { "seq": [ 0, 0, 1, 2, 3, 4 ],
"seq": [ 16 ], "term": false,
"return": "20" "out": "00001234"
}, },
"z,two": { "z,odd,open": {
"seq": [ 0, 16 ], "seq": [ 0, 1, 2, 3, 4 ],
"return": "30" "term": false,
}, "out": "101234"
"nz,even": { },
"seq": [ 15, 1, 12, 11, 8, 16 ], "nz,even,open": {
"return": "3f1cb8" "seq": [ 1, 2, 3, 4 ],
}, "term": false,
"z,odd": { "out": "001234"
"seq": [ 0, 15, 1, 12, 11, 8, 16 ], },
"return": "200f1cb8" "zz,odd,term": {
} "seq": [ 0, 0, 1, 2, 3, 4, 5 ],
"term": true,
"out": "30012345"
},
"z,even,term": {
"seq": [ 0, 1, 2, 3, 4, 5 ],
"term": true,
"out": "20012345"
},
"nz,odd,term": {
"seq": [ 1, 2, 3, 4, 5 ],
"term": true,
"out": "312345"
},
"zz,even,term": {
"seq": [ 0, 0, 1, 2, 3, 4 ],
"term": true,
"out": "20001234"
},
"z,odd,term": {
"seq": [ 0, 1, 2, 3, 4 ],
"term": true,
"out": "301234"
},
"nz,even,term": {
"seq": [ 1, 2, 3, 4 ],
"term": true,
"out": "201234"
}
} }